VEX IQ Python API
|
Config Touch Led: detects touch and shines in various colors More...
Public Member Functions | |
def | __init__ (self, port=None) |
def | is_touch (self) |
True if touch is detected, False otherwise. More... | |
def | color (self, red, green, blue, brightness=100) |
Set color from components in [0-100] range. More... | |
def | brightness (self, value) |
Set brigthness. More... | |
def | named_color (self, named_color) |
Set color from the NamedColor value. More... | |
def | on (self) |
Turn the LED on with the last set color. More... | |
def | off (self) |
Turn the LED off. More... | |
def | blink (self, on_time=0.5, off_time=0.5) |
Set the LED to blink in the last set color, given on/off time in seconds. More... | |
Config Touch Led: detects touch and shines in various colors
port | 1-12, None to autodetect. Default None. |
def vexiq.TouchLed.__init__ | ( | self, | |
port = None |
|||
) |
def vexiq.TouchLed.is_touch | ( | self | ) |
True if touch is detected, False otherwise.
def vexiq.TouchLed.color | ( | self, | |
red, | |||
green, | |||
blue, | |||
brightness = 100 |
|||
) |
Set color from components in [0-100] range.
red | |
green | |
blue | |
brightness | Default 100. |
def vexiq.TouchLed.brightness | ( | self, | |
value | |||
) |
Set brigthness.
in [0-100] range
value | brightness value [0-100] |
def vexiq.TouchLed.named_color | ( | self, | |
named_color | |||
) |
Set color from the NamedColor value.
named_color | NamedColor enum value |
def vexiq.TouchLed.on | ( | self | ) |
Turn the LED on with the last set color.
def vexiq.TouchLed.off | ( | self | ) |
Turn the LED off.
def vexiq.TouchLed.blink | ( | self, | |
on_time = 0.5 , |
|||
off_time = 0.5 |
|||
) |
Set the LED to blink in the last set color, given on/off time in seconds.
on_time | duration to be on, in seconds. Default 0.5 |
off_time | duration to be off, in seconds. Default 0.5 |