Closed martinberlin closed 2 years ago
Hello @cgreening This error is fixed with my pull request #53 but I just discovered an additional bug that I don't know why it's triggered: Using the V6 PCB and this project as soon as enters deepsleep wakes up automatically. No idea why since I'm not touching any GPIO. Can you imagine why it can be? Serial looks like:
I (240423) main: Saving state I (240423) EPD: Dehydrating EPD I (241373) EPD: Buffer compressed size: 59547 I (244443) EPD: 0 bytes written - retrying buffer save I (247093) EPD: Buffer saved 0 I (247093) EPD: Dehydrated EPD I (247093) SPIFFS: SPIFFS unmounted I (247093) main: Entering deep sleep --> 300 ms and wakes up again: I (14) boot: ESP-IDF 4.3.0 2nd stage bootloader
But this time with the white screen, also is not recovering SPIFFS data, kind of weird :(
Could be the buttons - are they active low or high? If they are active high then you can use the EXT1 sleep mode - I've not tested it though!
That's it. Using BUTONS_ACTIVE_LEVEL=0 on low then it wakes up automatically from deepsleep. Changing it to high it works correctly. It's no problem I can connect the buttons to 3.3V with a resistance. But I would like to find out why it is since I'm not aware that this PCB is using any of the 3 defined GPIOs. (But I might be wrong of course!)
Maybe it's simply a conflict with I2C since EPDiy also uses this interface. Error in log shows the following:
V6 uses concretely I2C in pca9555.c that is a GPIO expander. The temporal solution might be to instantiate current L58 touch only if the display is LilyGo EPD47. But still it should be possible to instantiate somehow another I2C interface in case we use another touch overlay.
Setup: