Skip to content

Commit b7f9970

Browse files
committed
Add an example.
1 parent 5fc005d commit b7f9970

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/blink.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import time
2+
import sn3218
3+
4+
lights = sn3218.SN3218()
5+
lights.enable()
6+
lights.enable_leds(0b111111111111111111)
7+
8+
state = True
9+
10+
while True:
11+
lights.output([state] * 18)
12+
state = not state
13+
time.sleep(1.0)
14+
15+

0 commit comments

Comments
 (0)