Skip to content

Commit 0522e4b

Browse files
authored
fix: change set_led_rgb parameters from uint8_t to bool for LED control (#20)
1 parent e9a388b commit 0522e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sketch/sketch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void matrix_draw(String frame){
6262
matrix.draw(shades);
6363
}
6464

65-
void set_led_rgb(String pin, uint8_t r, uint8_t g, uint8_t b) {
65+
void set_led_rgb(String pin, bool r, bool g, bool b) {
6666
if (pin == "LED3") {
6767
digitalWrite(LED_BUILTIN, r ? LOW : HIGH );
6868
digitalWrite(LED_BUILTIN + 1, g ? LOW : HIGH );

0 commit comments

Comments
 (0)