|
VEX IQ Python API
|
Use this class when programming with the touch LED device. More...
Public Member Functions | |
| def | __init__ (self, index) |
| def | default_fade (self, fadeType) |
| Sets the default fade time for the touchled sensor. More... | |
| def | pressing (self) |
| Get the pressed status of the touchled device. More... | |
| def | on (self, color, brightness=100) |
| Turn on the led in the touchled sensor. More... | |
| def | on_hue (self, colorHue, brightness=100) |
| Turn on the led in the touchled sensor. More... | |
| def | on_rgb (self, red, green, blue, brightness=100) |
| Turn on the led in the touchled sensor. More... | |
| def | off (self) |
| Turn off the led in the touchled sensor. More... | |
| def | brightness (self, brightness) |
| Turn on the led in the touchled sensor, or change current brightness. More... | |
| def | blink (self, color, on_time=0.25, off_time=0.25) |
| Set the led in the touchled sensor as blinking. More... | |
| def | blink_hue (self, colorHue, on_time=0.25, off_time=0.25) |
| Set the led in the touchled sensor as blinking. More... | |
| def | blink_rgb (self, red, green, blue, on_time=0.25, off_time=0.25) |
| Set the led in the touchled sensor as blinking. More... | |
Use this class when programming with the touch LED device.
| def vex.Touchled.__init__ | ( | self, | |
| index | |||
| ) |
| def vex.Touchled.default_fade | ( | self, | |
| fadeType | |||
| ) |
Sets the default fade time for the touchled sensor.
| fadeType | The type of fade the touchled will use: FadeType.SLOW, FAST or OFF |
| def vex.Touchled.pressing | ( | self | ) |
Get the pressed status of the touchled device.
| def vex.Touchled.on | ( | self, | |
| color, | |||
brightness = 100 |
|||
| ) |
Turn on the led in the touchled sensor.
| color | color value: 0xRRGGBB |
| brightness | The brightness for the led |
| def vex.Touchled.on_hue | ( | self, | |
| colorHue, | |||
brightness = 100 |
|||
| ) |
Turn on the led in the touchled sensor.
| colorHue | The color of the led: ColorHue enum value |
| brightness | The brightness for the led |
| def vex.Touchled.on_rgb | ( | self, | |
| red, | |||
| green, | |||
| blue, | |||
brightness = 100 |
|||
| ) |
Turn on the led in the touchled sensor.
| red | The red value of the led, 0-255 |
| green | The green value of the led, 0-255 |
| blue | The blue value of the led, 0-255 |
| brightness | The brightness for the led, 0-100 |
| def vex.Touchled.off | ( | self | ) |
Turn off the led in the touchled sensor.
| def vex.Touchled.brightness | ( | self, | |
| brightness | |||
| ) |
Turn on the led in the touchled sensor, or change current brightness.
| brightness | The brightness for the led 0-100 |
| def vex.Touchled.blink | ( | self, | |
| color, | |||
on_time = 0.25, |
|||
off_time = 0.25 |
|||
| ) |
Set the led in the touchled sensor as blinking.
| color | color value: 0xRRGGBB |
| on_time | The time the led should remain on in seconds |
| off_time | The time the led should remain off in seconds |
| def vex.Touchled.blink_hue | ( | self, | |
| colorHue, | |||
on_time = 0.25, |
|||
off_time = 0.25 |
|||
| ) |
Set the led in the touchled sensor as blinking.
| colorHue | The color of the led: ColorHue enum value |
| on_time | The time the led should remain on in seconds |
| off_time | The time the led should remain off in seconds |
| def vex.Touchled.blink_rgb | ( | self, | |
| red, | |||
| green, | |||
| blue, | |||
on_time = 0.25, |
|||
off_time = 0.25 |
|||
| ) |
Set the led in the touchled sensor as blinking.
| red | The red value of the led 0-255 |
| green | The green value of the led 0-255 |
| blue | The blue value of the led 0-255 |
| on_time | The time the led should remain on in seconds |
| off_time | The time the led should remain off in seconds |
1.8.15