We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c275d50 commit dcf86dcCopy full SHA for dcf86dc
Chapter03_Digital-Output/povToy/1up.c
@@ -45,7 +45,7 @@ int main(void) {
45
DDRB = 0xff; /* all output */
46
47
while (1) { /* mainloop */
48
- for (i = 0; i <= sizeof(Star1UP); ++i) {
+ for (i = 0; i < sizeof(Star1UP); i++) {
49
/* sizeof(Star1UP) returns the number of bits in our array, */
50
PORTB = Star1UP[i];
51
_delay_ms(DELAYTIME);
0 commit comments