Update tbeam factory example
This commit is contained in:
parent
d24b26972d
commit
031f52c42c
4 changed files with 13 additions and 1 deletions
9
examples/TBeamFactory/README.MD
Normal file
9
examples/TBeamFactory/README.MD
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
# GPIO_WAKEUP_SLEEP_CUR
|
||||
|
||||

|
||||
|
||||
# TIMER_WAKEUP_ADD_GPIO_WAKEUP_SLEEP_CUR
|
||||
|
||||

|
||||
|
||||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 294 KiB After Width: | Height: | Size: 294 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 343 KiB |
Loading…
Add table
Add a link
Reference in a new issue