Revision c32bcd017b202d418c9135e2df77be73a69044a0 authored by Ko- on 15 June 2020, 18:45:45 UTC, committed by Ko- on 15 June 2020, 18:45:45 UTC
This reverts commit b64e5f1073cc24097579417a91bcee3ee85eb260.
Those lines were not unused.
1 parent b64e5f1
Raw File
host_unidirectional.py
#!/usr/bin/env python3
import serial
import sys

dev = serial.Serial("/dev/ttyUSB0", 115200)

print("> Returned data:", file=sys.stderr)

while True:
    x = dev.read()
    sys.stdout.buffer.write(x)
    sys.stdout.flush()
back to top