Skip to content

Instantly share code, notes, and snippets.

@erzk
Created February 12, 2017 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erzk/3dc9c4733a2e8ac26097b28f61be23c8 to your computer and use it in GitHub Desktop.
Save erzk/3dc9c4733a2e8ac26097b28f61be23c8 to your computer and use it in GitHub Desktop.
Testing a serial port with ETG-4000
import serial
port = serial.Serial('COM1', 9600, timeout=0)
port.write('A \r')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment