Created
June 27, 2014 07:34
-
-
Save venthur/b08d4758fe5f533ae9d6 to your computer and use it in GitHub Desktop.
using the serial port to send marker
This file contains 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 | |
# | |
# 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