From f63fd9e4f4166252e8a5d4f2266b4a156660efd8 Mon Sep 17 00:00:00 2001 From: dido18 Date: Wed, 29 Oct 2025 00:39:40 +0100 Subject: [PATCH] fix: change set_led_rgb parameters from uint8_t to bool for LED control --- sketch/sketch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sketch/sketch.ino b/sketch/sketch.ino index a191a9e..694d40e 100644 --- a/sketch/sketch.ino +++ b/sketch/sketch.ino @@ -62,7 +62,7 @@ void matrix_draw(String frame){ matrix.draw(shades); } -void set_led_rgb(String pin, uint8_t r, uint8_t g, uint8_t b) { +void set_led_rgb(String pin, bool r, bool g, bool b) { if (pin == "LED3") { digitalWrite(LED_BUILTIN, r ? LOW : HIGH ); digitalWrite(LED_BUILTIN + 1, g ? LOW : HIGH );