Skip to content

Instantly share code, notes, and snippets.

View mecworks's full-sized avatar

Marc Christensen mecworks

View GitHub Profile
@mecworks
mecworks / lifespan.py
Last active August 11, 2021 11:00 — forked from daeken/lifespan.py
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) != '':