Skip to content

Instantly share code, notes, and snippets.

View mwarren's full-sized avatar

Mark Warren mwarren

View GitHub Profile
import serial
class Lifespan(object):
def __init__(self):
self.connect()
def connect(self):
self.port = serial.Serial('/dev/tty.IHP-Serialport', 19200, timeout=1)
while self.port.read(1) != '':