1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Pass int values to .write()

This commit is contained in:
Ross Wilson
2016-04-23 10:59:13 +07:00
parent dc1178632a
commit 056ce23280

View File

@@ -68,7 +68,8 @@ def write_tty(filename):
while count < 16:
while not ttyout.ready():
ttyout.tick(1)
byte = ttyout.write(chr(0))
#byte = ttyout.write(chr(0))
byte = ttyout.write(0)
ttyout.clear()
count += 1
@@ -79,7 +80,8 @@ def write_tty(filename):
while count < 32:
while not ttyout.ready():
ttyout.tick(1)
ttyout.write(chr(1))
#ttyout.write(chr(1))
ttyout.write(1)
ttyout.clear()
count += 1