Created
February 25, 2017 19:00
-
-
Save ryo1kato/5212a2739b301f8b98f944ad97e9b33f to your computer and use it in GitHub Desktop.
UART read/write with Arduino using pyserial
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
| ser = serial.Serial(port='/dev/tty.wchusbserial1420', | |
| baudrate=115200, | |
| stopbits=serial.STOPBITS_ONE, | |
| bytesize=serial.EIGHTBITS) | |
| ser.write("string"); | |
| ser.read(99) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment