|
@ -48,12 +48,12 @@ elif sys.argv[1] == "off": |
|
|
elif sys.argv[1]=="b": |
|
|
elif sys.argv[1]=="b": |
|
|
print("blinking") |
|
|
print("blinking") |
|
|
removeTrigger() |
|
|
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: |
|
|
else: |
|
|
print("Wrong command!!!") |
|
|
print("Wrong command!!!") |
|
|