Skip to content

Commit 82e1f61

Browse files
authored
Merge pull request #1513 from kattni/neopixel-blink-one-px
Adding static single-pixel example.
2 parents d401bbf + be1b125 commit 82e1f61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""CircuitPython blink example for built-in NeoPixel LED"""
2+
import time
3+
import board
4+
import neopixel
5+
6+
pixel = neopixel.NeoPixel(board.NEOPIXEL, 1)
7+
8+
while True:
9+
pixel.fill((255, 0, 0))
10+
time.sleep(0.5)
11+
pixel.fill((0, 0, 0))
12+
time.sleep(0.5)

0 commit comments

Comments
 (0)