You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file utilities.h in the example folder, the BOARD_TOUCH_IRQ is set to 7, GPIO7, but when I check the schematic, shouldn't it be GPIO21 ?
Also, anyone know how to put the device in deep sleep, and then wake up by touching the screen? How to do it properly? I have tried putting it in deep sleep, but it would wake up automatically after about 5 seconds.
Here is my code to put ESP32 into sleep:
void GoToSleepNow(void)
{
// Erase the display.
tft.fillScreen(TFT_BLACK);
// LCD off.
digitalWrite(TFT_BL, LOW);
// Delay.
delay(2000);
// Enable touch sleep.
touch.sleep();
// Set wake up source fo the sleep mode.
gpio_hold_en((gpio_num_t)BOARD_TOUCH_RST);
//gpio_deep_sleep_hold_en();
esp_sleep_enable_ext0_wakeup((gpio_num_t)BOARD_TOUCH_IRQ, 0);
//esp_sleep_enable_ext0_wakeup((gpio_num_t)BOARD_TOUCH_IRQ, 1); // 1, keep sleeping and won't wake up anymore
esp_deep_sleep_start();
}
thanks
The text was updated successfully, but these errors were encountered:
Hi all,
The file utilities.h in the example folder, the BOARD_TOUCH_IRQ is set to 7, GPIO7, but when I check the schematic, shouldn't it be GPIO21 ?
Also, anyone know how to put the device in deep sleep, and then wake up by touching the screen? How to do it properly? I have tried putting it in deep sleep, but it would wake up automatically after about 5 seconds.
Here is my code to put ESP32 into sleep:
thanks
The text was updated successfully, but these errors were encountered: