From 764b01e913d0123747757e5efd3545d46e921848 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 21 Aug 2023 15:43:23 +1000 Subject: Add idle->standby support when locked and no music --- src/drivers/touchwheel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/drivers/touchwheel.cpp') diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp index 59c2911e..6b925055 100644 --- a/src/drivers/touchwheel.cpp +++ b/src/drivers/touchwheel.cpp @@ -22,6 +22,8 @@ namespace drivers { +// Touch wheel implementation using a Microchip AT42QT2120 + static const char* kTag = "TOUCHWHEEL"; static const uint8_t kTouchWheelAddress = 0x1C; static const gpio_num_t kIntPin = GPIO_NUM_25; @@ -121,4 +123,8 @@ TouchWheelData TouchWheel::GetTouchWheelData() const { return data_; } +auto TouchWheel::PowerDown() -> void { + WriteRegister(LOW_POWER, 0); +} + } // namespace drivers -- cgit v1.2.3