fix for "stuck leds" on stop
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user