summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2021-01-31 22:30:32 +0100
committerThomas Bracht Laumann Jespersen <t@laumann.xyz>2021-01-31 22:30:32 +0100
commit535a6ec36adf90a9d8d77d0fa51be00c3e052e32 (patch)
tree13ca0c621176190f02ceb05bbbce74777f2e3b65 /t
parentbf31daa4e2c234e5f9473cf0b4cb474dc6c22fd6 (diff)
Make it a 4-button working keyboardHEADmaster
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-xt/test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/test.py b/t/test.py
index c7a1018..e42edbb 100755
--- a/t/test.py
+++ b/t/test.py
@@ -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()