|
VEX IQ C++ API
|
Use this class when programming with the touch LED device. More...
Inherits vex::device.
Public Member Functions | |
| touchled (int32_t index) | |
| Creates a new touchled sensor object on the port specified in the parameter. More... | |
| ~touchled () | |
| void | defaultFade (fadeType setting) |
| Sets the default fade time for the touchled sensor. More... | |
| bool | pressing () |
| Get the pressed status of the touchled device. More... | |
| void | on (colorHue color, uint32_t brightness=100) |
| Turn on the led in the touchled sensor. More... | |
| void | on (uint32_t hue, uint32_t brightness=100) |
| Turn on the led in the touchled sensor. More... | |
| void | on (uint8_t red, uint8_t green, uint8_t blue, uint32_t brightness=100) |
| Turn on the led in the touchled sensor. More... | |
| void | off () |
| Turn off the led in the touchled sensor. More... | |
| void | brightness (uint32_t brightness) |
| Turn on the led in the touchled sensor, or change current brightness. More... | |
| void | blink (colorHue color, float onTime=0.25, float offTime=0.25) |
| Set the led in the touchled sensor as blinking. More... | |
| void | blink (uint32_t hue, float onTime=0.25, float offTime=0.25) |
| Set the led in the touchled sensor as blinking. More... | |
| void | blink (uint8_t red, uint8_t green, uint8_t blue, float onTime=0.25, float offTime=0.25) |
| Set the led in the touchled sensor as blinking. More... | |
Public Member Functions inherited from vex::device | |
| device (int32_t index) | |
| ~device () | |
Additional Inherited Members | |
Protected Attributes inherited from vex::device | |
| int32_t | _index |
Use this class when programming with the touch LED device.
|
inline |
Creates a new touchled sensor object on the port specified in the parameter.
| index | to the brain port. |
|
inline |
| void vex::touchled::defaultFade | ( | fadeType | setting | ) |
Sets the default fade time for the touchled sensor.
| setting | The type of fade the touchled will use, slow, fast or off |
| bool vex::touchled::pressing | ( | ) |
Get the pressed status of the touchled device.
| void vex::touchled::on | ( | colorHue | color, |
| uint32_t | brightness = 100 |
||
| ) |
Turn on the led in the touchled sensor.
| color | The color of the led |
| brightness | The brightness for the led |
| void vex::touchled::on | ( | uint32_t | hue, |
| uint32_t | brightness = 100 |
||
| ) |
Turn on the led in the touchled sensor.
| hue | The hue of the led |
| brightness | The brightness for the led |
| void vex::touchled::on | ( | uint8_t | red, |
| uint8_t | green, | ||
| uint8_t | blue, | ||
| uint32_t | brightness = 100 |
||
| ) |
Turn on the led in the touchled sensor.
| red | The red value of the led |
| green | The green value of the led |
| blue | The blue value of the led |
| brightness | The brightness for the led |
| void vex::touchled::off | ( | ) |
Turn off the led in the touchled sensor.
| void vex::touchled::brightness | ( | uint32_t | brightness | ) |
Turn on the led in the touchled sensor, or change current brightness.
| brightness | The brightness for the led |
| void vex::touchled::blink | ( | colorHue | color, |
| float | onTime = 0.25, |
||
| float | offTime = 0.25 |
||
| ) |
Set the led in the touchled sensor as blinking.
| color | The color of the led |
| onTime | The time the led should remain on in seconds |
| offTime | The time the led should remain off in seconds |
| void vex::touchled::blink | ( | uint32_t | hue, |
| float | onTime = 0.25, |
||
| float | offTime = 0.25 |
||
| ) |
Set the led in the touchled sensor as blinking.
| hue | The hue of the led |
| onTime | The time the led should remain on in seconds |
| offTime | The time the led should remain off in seconds |
| void vex::touchled::blink | ( | uint8_t | red, |
| uint8_t | green, | ||
| uint8_t | blue, | ||
| float | onTime = 0.25, |
||
| float | offTime = 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 |
| onTime | The time the led should remain on in seconds |
| offTime | The time the led should remain off in seconds |
1.8.15