From d1b3024de0b7e4ccc7cec3fe9e78bbafc50a89c6 Mon Sep 17 00:00:00 2001 From: Tinyu Date: Thu, 23 Jul 2026 11:31:18 +0800 Subject: [PATCH] Add PaperMono touch wake-up support. --- src/utility/Power_Class.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utility/Power_Class.cpp b/src/utility/Power_Class.cpp index 5aed55b..0b6d704 100644 --- a/src/utility/Power_Class.cpp +++ b/src/utility/Power_Class.cpp @@ -1277,6 +1277,10 @@ namespace m5 #endif uint_fast8_t wpin = _wakeupPin; + if (touch_wakeup && (M5.getBoard() == board_t::board_M5PaperMono)) + { + wpin = GPIO_NUM_4; + } if (touch_wakeup && wpin < GPIO_NUM_MAX) { #if SOC_PM_SUPPORT_EXT0_WAKEUP @@ -1328,6 +1332,10 @@ namespace m5 #endif uint_fast8_t wpin = _wakeupPin; + if (touch_wakeup && (M5.getBoard() == board_t::board_M5PaperMono)) + { + wpin = GPIO_NUM_4; + } if (touch_wakeup && wpin < GPIO_NUM_MAX) { if (M5.getBoard() == board_t::board_M5PaperS3)