Skip to content

Commit 68aa6c6

Browse files
authored
Merge pull request #12 from kattni/example-update
Update example for Linux/Blinka use
2 parents fe25161 + bd24132 commit 68aa6c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/pixie_simpletest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
import busio
44
import adafruit_pixie
55

6+
# For use with CircuitPython:
67
uart = busio.UART(board.TX, rx=None, baudrate=115200)
78

9+
# For use on Raspberry Pi/Linux with Adafruit_Blinka:
10+
# import serial
11+
# uart = serial.Serial("/dev/ttyS0", baudrate=115200, timeout=3000)
12+
813
num_pixies = 2 # Change this to the number of Pixie LEDs you have.
914
pixies = adafruit_pixie.Pixie(uart, num_pixies, brightness=0.2, auto_write=False)
1015

0 commit comments

Comments
 (0)