Last active
May 15, 2020 14:34
-
-
Save rhaleblian/ba3d8de32884d455a821187212074df6 to your computer and use it in GitHub Desktop.
Basic pyserial test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
ser = serial.Serial('/dev/ttyACM0') # open serial port | |
print(ser.name) # check which port was really used | |
buf = ser.read(6) | |
print buf | |
ser.close() # close port |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment