Update tbeam factory example

This commit is contained in:
lewisxhe 2024-11-19 09:56:03 +08:00
commit 031f52c42c
4 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,9 @@
# GPIO_WAKEUP_SLEEP_CUR
![](./images/GPIO_WAKEUP_SLEEP_CUR.jpg)
# TIMER_WAKEUP_ADD_GPIO_WAKEUP_SLEEP_CUR
![](./images/TIMER_WAKEUP_ADD_GPIO_WAKEUP_SLEEP_CUR.jpg)

View file

@ -214,7 +214,10 @@ void handleEvent(AceButton *button, uint8_t eventType, uint8_t buttonState)
// See sleep_current.jpg
esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);
// esp_sleep_enable_timer_wakeup(30 * 1000 * 1000);
// GPIO WAKE UP + TIMER WAKE UP ~500uA
esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);
esp_sleep_enable_timer_wakeup(30 * 1000 * 1000);
esp_deep_sleep_start();

View file

Before

Width:  |  Height:  |  Size: 294 KiB

After

Width:  |  Height:  |  Size: 294 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB