atomic14 / diy-esp32-epub-reader

An ESP32 e-reader
MIT License
340 stars 47 forks source link

Prepare grounds for SD card and button handling in epdiy V6 #63

Closed martinberlin closed 2 years ago

martinberlin commented 2 years ago

When this is done should close

martinberlin commented 2 years ago

@cgreening this is working as expected. AFAIK is not possible to wake up using ULP since the IO expander is not powered when we call esp_poweroff() But still it works very good to read buttons and what I'm planning is to read UP & DOWN buttons like this leaving only SELECT to wake up.
Also I could not use A0 (GPIO 34 in this PCB) to read the battery voltage like in EPD47. It just does not work, pending to debug if something is read or simply nothing. The V6 PCB has a Jumper that I soldered in order to use IO 34 as ADC reader or not, in case I cannot make it work I will use it as another free GPIO and leave the battery indicator commented out.

This weekend I will try to connect the microSD card reader using SPI and the free IOs left after this update. Waiting for a small green open PCB to solder the 3 buttons and mount the card reader. Then it will be already usable with the 3000 mAh battery mounted so I hope to use to read books at night in bed ;)

martinberlin commented 2 years ago

@cgreening I think it's ready. Will adjust the SD pins directly on main branch when I get the right card and also add the Schematics to connect the buttons in the Wiki page.