Skip to content

Commit 86bd2bc

Browse files
authored
Update micropython_examples.md
Fixing LED example typo.
1 parent 172027a commit 86bd2bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/micropython_examples.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Finally, we'll make sure we can properly control the WS2812 LED on the Pro Micro
3232
import machine, neopixel
3333
pin = machine.Pin(25, machine.Pin.OUT)
3434
led = neopixel.NeoPixel(pin, 1)
35-
n[0] = (255, 0, 0)
36-
n.write()
35+
led[0] = (255, 0, 0)
36+
led.write()
3737
```
3838

3939
Try playing around with other values between 0 and 255 for the three colors (R, G, B) and then writing the changes to switch the LED's displayed color.

0 commit comments

Comments
 (0)