mirror of
https://github.com/phooky/Apple-410.git
synced 2024-05-28 23:41:32 +00:00
10 lines
209 B
Python
Executable File
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)))
|