Skip to content

Instantly share code, notes, and snippets.

@venthur
Created June 27, 2014 07:34
Show Gist options
  • Save venthur/b08d4758fe5f533ae9d6 to your computer and use it in GitHub Desktop.
Save venthur/b08d4758fe5f533ae9d6 to your computer and use it in GitHub Desktop.
using the serial port to send marker
import serial
#
# Initialization
#
serialport = serial.Serial()
serialport.baudrate = 57600
# i assume that translates to COM3 on windows
serialport.port = 3
# open once per feedback session
serialport.open()
#
# write stuff (i.e. send marker)
#
serialport.write('foo')
#
# release in the end
#
serialport.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment