fixed button polarity

pull/944/head
thirdr 2024-06-03 09:11:49 +01:00
rodzic 981a38b989
commit b9f3990995
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -32,11 +32,11 @@ ST7789 st7789(
PicoGraphics_PenRGB332 graphics(st7789.width, st7789.height, nullptr);
Button button_a(Tufty2040::A);
Button button_b(Tufty2040::B);
Button button_c(Tufty2040::C);
Button button_up(Tufty2040::UP);
Button button_down(Tufty2040::DOWN);
Button button_a(Tufty2040::A, Polarity::ACTIVE_HIGH);
Button button_b(Tufty2040::B, Polarity::ACTIVE_HIGH);
Button button_c(Tufty2040::C, Polarity::ACTIVE_HIGH);
Button button_up(Tufty2040::UP, Polarity::ACTIVE_HIGH);
Button button_down(Tufty2040::DOWN, Polarity::ACTIVE_HIGH);
uint32_t time() {
absolute_time_t t = get_absolute_time();