Skip to content

Instantly share code, notes, and snippets.

@joegle joegle/python-serial.py
Last active Aug 29, 2015

Embed
What would you like to do?
import serial
stream = serial.Serial("/dev/ttyUSB0", 115200)
rr_intervals = []
while True:
raw_line = stream.readline()
beat_time = int(str(raw_line))
rr_intervals.append(beat_time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.