mirror of
https://github.com/Snigelson/pytimex.git
synced 2026-07-28 04:05:41 +00:00
21 lines
307 B
Python
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)
|