|
|
@ -38,7 +38,10 @@ TouchWheel::TouchWheel() { |
|
|
|
}; |
|
|
|
}; |
|
|
|
gpio_config(&int_config); |
|
|
|
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.
|
|
|
|
// Configure keys 0, 1, and 2 as a wheel.
|
|
|
|
WriteRegister(SLIDER_OPTIONS, 0b11000000); |
|
|
|
WriteRegister(SLIDER_OPTIONS, 0b11000000); |
|
|
|