https://github.com/mupq/pqm4
Revision 1eeb74e4106a80e26a9452e4793acd6f191fe413 authored by Matthias J. Kannwischer on 08 November 2022, 05:17:17 UTC, committed by Matthias J. Kannwischer on 08 November 2022, 05:17:17 UTC
1 parent 918f379
Tip revision: 1eeb74e4106a80e26a9452e4793acd6f191fe413 authored by Matthias J. Kannwischer on 08 November 2022, 05:17:17 UTC
skip aarch64 implementations when building all schemes via make
skip aarch64 implementations when building all schemes via make
Tip revision: 1eeb74e
host_unidirectional.py
#!/usr/bin/env python3
import serial
import sys
import platform
if platform.system() == "Darwin":
dev = serial.Serial("/dev/tty.usbserial-0001", 38400)
else:
dev = serial.Serial("/dev/ttyUSB0", 38400)
print("> Returned data:", file=sys.stderr)
while True:
x = dev.read()
sys.stdout.buffer.write(x)
sys.stdout.flush()
Computing file changes ...