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