Skip to content

Commit 647938e

Browse files
committed
Adding USB serial.
1 parent 1905c10 commit 647938e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PMS5003_Air_Quality_Sensor/PMS5003_CircuitPython/code.py renamed to PMS5003_Air_Quality_Sensor/PMS5003_CircuitPython/PMS5003_example.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# import serial
1414
# uart = serial.Serial("/dev/ttyS0", baudrate=9600, timeout=0.25)
1515

16+
# For use with USB-to-serial cable:
17+
# import serial
18+
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=0.25)
19+
1620
buffer = []
1721

1822
while True:

0 commit comments

Comments
 (0)