janick / WT32-SqLn

Getting started with Wireless Tag's WT32-SC01 Plus using SquareLine Studio and LVGL
MIT License
84 stars 11 forks source link

Wake-up Pin #5

Closed kraa965 closed 1 year ago

kraa965 commented 1 year ago

hi, esp has a function esp_sleep_enable_ext0_wakeup, tell me which pin is responsible for the output from deep sleep?

janick commented 1 year ago

I would refer to this article and use one of the exposed GPIO pins.

The article uses the Arduino framework whereas this example uses IDF but since the former builds on the latter, it is possible to accomplish there as well. This article might be a good starting point.

kraa965 commented 1 year ago

perhaps I did not correctly compose the question, for example, some screens have an IRQ output, which, when pressed on the touch screen, brings the board out of deep sleep, just look at the documentation of wt32 sc01 plus, I did not see this output, so I decided to find out from you after reading your article

janick commented 1 year ago

That would be a question for Wireless Tag...

There is a board schematic on page 8 of the User Guide and it shows a "TP_INT" signal on the LCD port connected to "IO7" on the ESP32. Maybe that would work using the approach shown above?

kraa965 commented 1 year ago

I tried to use this pin, but for some reason it does not respond to touch, esp does not come out of deep sleep