The following information is for the EMANT380
Turn on and off the LEDs bitwise
Learn:
The Light Application Adaptor has a Red, Yellow, Green LED and switch connected as shown
WriteBit.py
import emant
import time
m = emant.Emant300()
m.Open("00:06:66:00:a1:D8")
print m.HwId()
count = 0
while count < 3:
m.WriteDigitalBit(count,False)
count += 1
time.sleep(1)
m.Close()
Code Explained
m.WriteDigitalBit(count,False)
Set the count to the LED bit assignment and the state to True to turn off and False to turn on the LED.