diff options
author | Thomas Bracht Laumann Jespersen <t@laumann.xyz> | 2021-01-31 22:30:32 +0100 |
---|---|---|
committer | Thomas Bracht Laumann Jespersen <t@laumann.xyz> | 2021-01-31 22:30:32 +0100 |
commit | 535a6ec36adf90a9d8d77d0fa51be00c3e052e32 (patch) | |
tree | 13ca0c621176190f02ceb05bbbce74777f2e3b65 /t | |
parent | bf31daa4e2c234e5f9473cf0b4cb474dc6c22fd6 (diff) |
Thanks to some electrical engineering assistance from a good friend, the
2×2 button keyboard is now a reality.
Diffstat (limited to 't')
-rwxr-xr-x | t/test.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,9 +5,10 @@ import serial def main(): with serial.Serial('/dev/ttyACM0', 9600, timeout=10) as ser: while True: - b = ser.read() + b = ser.readline() if b: - print(b) + #print(b) + print(b.decode('ascii').strip()) if __name__ == '__main__': main() |