Files
Simon Larsson 243b21abc8 Add script to continuously send sync
Good for testing that PC to Blaster communication works
2021-08-17 17:27:34 +02:00

21 lines
307 B
Python

# Sends sync forever
import sys
import pytimex
print("Looking for blaster...")
try:
port = sys.argv[1]
except:
port = "/dev/ttyACM0"
# Initialize blaster
blaster = pytimex.Blaster(port)
print("Sending sync, press ctrl+c to stop")
# Send synchronization byte forever
while True:
blaster.blast(0x55)