|
|
@ -48,12 +48,12 @@ elif sys.argv[1] == "off": |
|
|
|
elif sys.argv[1]=="b": |
|
|
|
print("blinking") |
|
|
|
removeTrigger() |
|
|
|
while True: |
|
|
|
writeLED("/brightness", "1") |
|
|
|
time.sleep(0.5) |
|
|
|
writeLED("/brightness","0") |
|
|
|
time.sleep(0.5) |
|
|
|
|
|
|
|
elif sys.argv[1]=="b": |
|
|
|
print("blinking") |
|
|
|
removeTrigger() |
|
|
|
writeLED("/trigger", "timer") |
|
|
|
writeLED("/delay_on","500") |
|
|
|
writeLED("/delay_off","500") |
|
|
|
|
|
|
|
else: |
|
|
|
print("Wrong command!!!") |
|
|
|