14#ifndef VEX_LED_CLASS_H
15#define VEX_LED_CLASS_H
49 void on( colorType color, uint32_t brightness = 100 );
56 void on( uint32_t hue, uint32_t brightness = 100 );
65 void on( uint8_t red, uint8_t green, uint8_t blue, uint32_t brightness = 100 );
73 void setColor( colorType color );
93 void setBlink( colorType color,
double onTime = 0.25,
double offTime = 0.25 );
101 void setBlink( uint32_t hue,
double onTime = 0.25,
double offTime = 0.25 );
131 enum class tEventType {
136 void _setBrightness( uint32_t brightness );
137 void _setColor( uint32_t rgb );
138 void _setBlink(
double onTime,
double offTime );
139 uint32_t _colorToRgb( colorType color );
140 uint32_t _hueToRgb( uint32_t hue );
void setFade(fadeType setting)
Sets the default fade time for the touchled sensor.
void on(uint32_t hue, uint32_t brightness=100)
Turn on the led in the touchled sensor.
void setBlink(uint32_t hue, double onTime=0.25, double offTime=0.25)
Set the led in the touchled sensor as blinking.
void on(uint8_t red, uint8_t green, uint8_t blue, uint32_t brightness=100)
Turn on the led in the touchled sensor.
touchled(int32_t index)
Creates a new touchled sensor object on the port specified in the parameter.
void released(void(*callback)(void))
Calls a function when the touchled is released.
bool pressing()
Get the pressed status of the touchled device.
void setBrightness(uint32_t brightness)
Turn on the led in the touchled sensor, or change current brightness.
void on(colorType color, uint32_t brightness=100)
Turn on the led in the touchled sensor.
void setBlink(colorType color, double onTime=0.25, double offTime=0.25)
Set the led in the touchled sensor as blinking.
void pressed(void(*callback)(void))
Calls a function when the touchled is pressed.
void off(void)
Turn off the led in the touchled sensor.
int32_t value()
Gets the value of the touchled sensor.
Bumper switch device class