diff --git a/examples/TBeamFactory/README.MD b/examples/TBeamFactory/README.MD new file mode 100644 index 0000000..56646bd --- /dev/null +++ b/examples/TBeamFactory/README.MD @@ -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) + diff --git a/examples/TBeamFactory/TBeamFactory.ino b/examples/TBeamFactory/TBeamFactory.ino index d590bc2..fd162e7 100644 --- a/examples/TBeamFactory/TBeamFactory.ino +++ b/examples/TBeamFactory/TBeamFactory.ino @@ -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(); diff --git a/examples/TBeamFactory/sleep_current.jpg b/examples/TBeamFactory/images/GPIO_WAKEUP_SLEEP_CUR.jpg similarity index 100% rename from examples/TBeamFactory/sleep_current.jpg rename to examples/TBeamFactory/images/GPIO_WAKEUP_SLEEP_CUR.jpg diff --git a/examples/TBeamFactory/images/TIMER_WAKEUP_ADD_GPIO_WAKEUP_SLEEP_CUR.jpg b/examples/TBeamFactory/images/TIMER_WAKEUP_ADD_GPIO_WAKEUP_SLEEP_CUR.jpg new file mode 100644 index 0000000..035e17d Binary files /dev/null and b/examples/TBeamFactory/images/TIMER_WAKEUP_ADD_GPIO_WAKEUP_SLEEP_CUR.jpg differ