Add script to continuously send sync

Good for testing that PC to Blaster communication works
This commit is contained in:
Simon Larsson
2021-08-17 17:27:34 +02:00
parent 481a38f1b0
commit 243b21abc8
+20
View File
@@ -0,0 +1,20 @@
# 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)