diff options
Diffstat (limited to 'src/drivers/Cst816s.cpp')
-rw-r--r-- | src/drivers/Cst816s.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/Cst816s.cpp b/src/drivers/Cst816s.cpp index 8ed65876..67700f53 100644 --- a/src/drivers/Cst816s.cpp +++ b/src/drivers/Cst816s.cpp @@ -75,3 +75,13 @@ Cst816S::TouchInfos Cst816S::GetTouchInfo() { info.action = action; return info; } + +void Cst816S::Sleep() { + nrfx_twi_disable(&twi); + nrf_gpio_cfg_default(6); + nrf_gpio_cfg_default(7); +} + +void Cst816S::Wakeup() { + Init(); +} |