Skip to content

Commit 0420430

Browse files
authored
Merge pull request #7 from kattni/add-usb-serial
Add usb serial
2 parents 1e52be3 + 7aca5a2 commit 0420430

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/us100_simpletest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
import adafruit_us100
77
uart = busio.UART(board.TX, board.RX, baudrate=9600)
88

9+
# For use with USB-to-serial cable:
10+
# import serial
11+
# import adafruit_us100
12+
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=1)
13+
914
# For use with Raspberry Pi/Linux:
1015
# import serial
1116
# import adafruit_us100

0 commit comments

Comments
 (0)