Skip to content

Commit

Permalink
Add an example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Feb 15, 2024
1 parent 5fc005d commit 6e6a20c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/blink.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import time

import sn3218

lights = sn3218.SN3218()
lights.enable()
lights.enable_leds(0b111111111111111111)

state = True

while True:
lights.output([state] * 18)
state = not state
time.sleep(1.0)


0 comments on commit 6e6a20c

Please sign in to comment.