Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Tips & Making custom sketch

mcer12 edited this page Sep 5, 2019 · 2 revisions

Making custom sketch

  1. 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.
Clone this wiki locally