You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2023. It is now read-only.
You need to set GPIO16 low at the beginning of setup() if you want to use buttons in your sketch. Otherwise anytime you push any button, Hugo will restart.
pinMode(16, OUTPUT);
digitalWrite(16, LOW);
Other tips
Don't leave the battery fully charged. It's discharging so slowly it's close to not discharging at all. LiPo doesn't like to lie fully charged for months. Just discharge it a bit just by running Config Portal one time up until it goes to sleep automatically. You will loose some battery life but the battery will be happy!
Don't let the battery to discharge till dead. Battery has built-in overdischarge protection so it won't catch on fire but the battery won't thank you for that.