diff options
Diffstat (limited to 'src/drivers/touchwheel.cpp')
| -rw-r--r-- | src/drivers/touchwheel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
