Reset the touchwheel during boot

custom
jacqueline 2 years ago
parent 63215ccf16
commit 4b627acee6
  1. 5
      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);

Loading…
Cancel
Save