We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2823e84 commit f1cc380Copy full SHA for f1cc380
1 file changed
PyLeap_NeoPixel_Blinky_demo/code.py
@@ -0,0 +1,23 @@
1
+import time
2
+import board
3
+import neopixel
4
+
5
6
+pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=0.2, auto_write=False)
7
+PURPLE = (10, 0, 25)
8
+PINK = (25, 0, 10)
9
+OFF = (0,0,0)
10
11
+while True:
12
+ pixels.fill(PURPLE)
13
+ pixels.show()
14
+ time.sleep(0.5)
15
+ pixels.fill(OFF)
16
17
18
+ pixels.fill(PINK)
19
20
21
22
23
0 commit comments