You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
324 B

import sys
import leglight
# allLights = leglight.discover(2)
# print(allLights)
# for light in allLights:
# light.off()
left = leglight.LegLight('192.168.68.112',9123)
right = leglight.LegLight('192.168.68.113',9123)
if sys.argv[1] == 'bright':
print('bright')
else:
print('dim')
#print(myLight)
#myLight.on()