From b9f39909953844e4a256e3489af28f7e1cb79a99 Mon Sep 17 00:00:00 2001 From: thirdr Date: Mon, 3 Jun 2024 09:11:49 +0100 Subject: [PATCH] fixed button polarity --- examples/tufty2040/tufty2040_drawing.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/tufty2040/tufty2040_drawing.cpp b/examples/tufty2040/tufty2040_drawing.cpp index af5287d1..3fd57d58 100644 --- a/examples/tufty2040/tufty2040_drawing.cpp +++ b/examples/tufty2040/tufty2040_drawing.cpp @@ -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();