Apple-410/send_to_plotter.py
2017-11-21 12:09:54 -05:00

10 lines
209 B
Python
Executable File

#!/usr/bin/python3
import serial
print("opening port")
s = serial.Serial("/dev/ttyUSB0", 9600, timeout=1)
print("opened")
s.write(b'PS4\x03')
print("Sent pen select\n")
print("recv {}\n".format(s.read(100)))