atomic14 / diy-esp32-epub-reader

An ESP32 e-reader
MIT License
319 stars 43 forks source link

Adding a power switch to m5paper #92

Open drtonis opened 11 months ago

drtonis commented 11 months ago

Hi,

I uploaded the code to my M5paper and it works as described. The only thing that I have noticed is that after not pressing any button (unknown) time the ESP goes to deep sleep and the only way to wake it up is plugging a power cable to the USB port. Somewhere I read that when plugging the USB cable, the whole board will be restarted.

  1. Where in the code could I find the sleep time constants? I went through the code, but I couldn’t find the time.
  2. What is the function of the back button?
  3. I would like to add a power switch to disconnect the battery. After opening the M5paper I un- and re-plugged the battery, however that was not sufficient for waking the ESP. At least mine was still after that unresponsive.

Thanks!