Just wait for touchwheel reboot instead of being clever

custom
jacqueline 2年前
コミット e8a972cc7f
  1. 4
      src/drivers/touchwheel.cpp

@ -39,9 +39,7 @@ TouchWheel::TouchWheel() {
gpio_config(&int_config); gpio_config(&int_config);
WriteRegister(RESET, 1); WriteRegister(RESET, 1);
while (gpio_get_level(kIntPin)) { vTaskDelay(pdMS_TO_TICKS(300));
vTaskDelay(pdMS_TO_TICKS(10));
}
// Configure keys 0, 1, and 2 as a wheel. // Configure keys 0, 1, and 2 as a wheel.
WriteRegister(SLIDER_OPTIONS, 0b11000000); WriteRegister(SLIDER_OPTIONS, 0b11000000);

読み込み中…
キャンセル
保存