From 9aec39a39d24560ca14f92c06e24a797095247b6 Mon Sep 17 00:00:00 2001 From: Oleksiy Date: Tue, 7 Feb 2023 01:50:24 +0200 Subject: [PATCH] fix for "stuck leds" on stop --- software/GToE/GToE.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/software/GToE/GToE.ino b/software/GToE/GToE.ino index 93a2410..e2f066b 100644 --- a/software/GToE/GToE.ino +++ b/software/GToE/GToE.ino @@ -40,7 +40,7 @@ channel channels[6] = { //array of channel settings {10, 0, 0, 0 }, { 7, 1, 0, 0 }, { 2, 0, 1, 4 }, - { 6, 1, 1,-4 }, + { 6, 1, 1,-4 } }; int outsClocksCounts[6]; @@ -191,6 +191,7 @@ void updateTiming() { void resetClocks() { for (int i = 0; i<6; i++) { outsClocksCounts[i] = 0; + digitalWrite(outsPins[i], LOW); //to avoid stuck leds } }