Reset the touchwheel during boot
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user