File tree 1 file changed +4
-4
lines changed
libraries/ESP32/examples/DeepSleep/ExternalWakeUp
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
#include " driver/rtc_io.h"
24
24
25
25
#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
28
28
RTC_DATA_ATTR int bootCount = 0 ;
29
29
30
30
/*
@@ -74,8 +74,8 @@ void setup() {
74
74
// No need to keep that power domain explicitly, unlike EXT1.
75
75
rtc_gpio_pullup_dis (WAKEUP_GPIO);
76
76
rtc_gpio_pulldown_en (WAKEUP_GPIO);
77
-
78
- #else // EXT1 WAKEUP
77
+
78
+ #else // EXT1 WAKEUP
79
79
// If you were to use ext1, you would use it like
80
80
esp_sleep_enable_ext1_wakeup_io (BUTTON_PIN_BITMASK (WAKEUP_GPIO), ESP_EXT1_WAKEUP_ANY_HIGH);
81
81
/*
You can’t perform that action at this time.
0 commit comments