File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libraries/ESP32/examples/DeepSleep/ExternalWakeUp Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2323#include " driver/rtc_io.h"
2424
2525#define BUTTON_PIN_BITMASK (GPIO ) (1ULL << GPIO) // 2 ^ GPIO_NUMBER in hex
26- #define USE_EXT0_WAKEUP 1 // 1 = EXT0 wakeup, 0 = EXT1 wakeup
27- #define WAKEUP_GPIO GPIO_NUM_33 // Only RTC IO are allowed - ESP32 Pin example
26+ #define USE_EXT0_WAKEUP 1 // 1 = EXT0 wakeup, 0 = EXT1 wakeup
27+ #define WAKEUP_GPIO GPIO_NUM_33 // Only RTC IO are allowed - ESP32 Pin example
2828RTC_DATA_ATTR int bootCount = 0 ;
2929
3030/*
@@ -74,8 +74,8 @@ void setup() {
7474 // No need to keep that power domain explicitly, unlike EXT1.
7575 rtc_gpio_pullup_dis (WAKEUP_GPIO);
7676 rtc_gpio_pulldown_en (WAKEUP_GPIO);
77-
78- #else // EXT1 WAKEUP
77+
78+ #else // EXT1 WAKEUP
7979 // If you were to use ext1, you would use it like
8080 esp_sleep_enable_ext1_wakeup_io (BUTTON_PIN_BITMASK (WAKEUP_GPIO), ESP_EXT1_WAKEUP_ANY_HIGH);
8181 /*
You can’t perform that action at this time.
0 commit comments