diff --git a/src/M5Stack.cpp b/src/M5Stack.cpp index 08a9635..7c3284e 100644 --- a/src/M5Stack.cpp +++ b/src/M5Stack.cpp @@ -98,8 +98,8 @@ void M5Stack::powerOFF() { // ESP32 into deep sleep uint64_t _wakeupPin_mask = 1ULL << _wakeupPin; - USE_SERIAL.printf("Enabling EXT1 wakeup on pins GPIO%d\n", _wakeupPin); - esp_deep_sleep_enable_ext0_wakeup((gpio_num_t)_wakeupPin_mask , 0); + USE_SERIAL.printf("Enabling EXT0 wakeup on pins GPIO%d\n", _wakeupPin); + esp_deep_sleep_enable_ext0_wakeup((gpio_num_t)_wakeupPin , LOW); while(digitalRead(_wakeupPin) == LOW) { delay(10); diff --git a/src/utility/Display.cpp b/src/utility/Display.cpp index b659990..5493e4e 100644 --- a/src/utility/Display.cpp +++ b/src/utility/Display.cpp @@ -3087,6 +3087,10 @@ void ILI9341::clearDisplay() { fillScreen(0x0000); } +void ILI9341::clear() { + clearDisplay(); +} + void ILI9341::display() { } /*************************************************** diff --git a/src/utility/Display.h b/src/utility/Display.h index b746613..b374800 100644 --- a/src/utility/Display.h +++ b/src/utility/Display.h @@ -587,7 +587,8 @@ public: progressBar(int x, int y, int w, int h, uint8_t val), setAddrWindow(int32_t xs, int32_t ys, int32_t xe, int32_t ye), display(), - clearDisplay(); + clearDisplay(), + clear(); void startWrite(void); void endWrite(void);