Skip to content

Commit 21d9582

Browse files
committed
Fix last example so all pins are set to INPUTS at the end of the loop!
1 parent b89b341 commit 21d9582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/guides/charlieplexing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ void loop() {
692692
}
693693
delay(SCAN_DELAY);
694694
for (int j = 0; j < LED_COUNT; j++) {
695-
digitalWrite(LEDS[i], LOW);
695+
digitalWrite(LEDS[j], LOW);
696696
pinMode(LEDS[j], INPUT);
697697
}
698698
}

0 commit comments

Comments
 (0)