diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-08 10:24:18 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-08 10:24:18 +1000 |
| commit | 4b627acee6cd9d3c027a27da5b52be74670dd1ca (patch) | |
| tree | 07f1b60b4643ead0005c882bc2bcaf0b91ab174e /src/drivers | |
| parent | 63215ccf1677ac2ea41cd6f64025d55f6f4918a0 (diff) | |
| download | tangara-fw-4b627acee6cd9d3c027a27da5b52be74670dd1ca.tar.gz | |
Reset the touchwheel during boot
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/touchwheel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp index c617e5df..77b78c23 100644 --- a/src/drivers/touchwheel.cpp +++ b/src/drivers/touchwheel.cpp @@ -38,7 +38,10 @@ TouchWheel::TouchWheel() { }; gpio_config(&int_config); - WriteRegister(LOW_POWER, 1); + WriteRegister(RESET, 1); + while (gpio_get_level(kIntPin)) { + vTaskDelay(pdMS_TO_TICKS(10)); + } // Configure keys 0, 1, and 2 as a wheel. WriteRegister(SLIDER_OPTIONS, 0b11000000); |
