def main(): disp = Dispatcher() Tasklet.new(disp.loop)() host = Host(disp, "/dev/ttySP1") disp.add_host(host) while True: host.send([0x45])