forked from Michel2/pytimex
Add script to continuously send sync
Good for testing that PC to Blaster communication works
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user