Skip to content

Commit 74df064

Browse files
authored
Fixed README blinky gpio_write input
Previously, when a learner followed the blinky README instructions, "make flash" generated an error. The issue was that variable pin in main.c wasn't previously defined. (Maybe that was just me and this is invalid!) By making the change proposed, the main.c from README instructions aligns with Step-1-... main.c. Now my main.c builds and flashes without error. The board blinks appropriately too.
1 parent dde0d95 commit 74df064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,9 @@ Finally, we're ready to modify our main loop to implement LED blinking:
780780
781781
```c
782782
for (;;) {
783-
gpio_write(pin, true);
783+
gpio_write(led, true);
784784
spin(999999);
785-
gpio_write(pin, false);
785+
gpio_write(led, false);
786786
spin(999999);
787787
}
788788
```

0 commit comments

Comments
 (0)