14#ifndef VEX_COLOR_CLASS_H
15#define VEX_COLOR_CLASS_H
50 colorType colorname12();
94 void setLight( int32_t intensity, percentUnits units = percentUnits::pct );
97 enum class tEventType {
104 void pollColors(
void );
bool isNearObject()
Check to see if an object is detected by the color sensor.
colorsensor(int32_t index)
Creates a new color sensor object on the port specified in the parameter.
colorType colorname3()
Gets the name of the detected color.
colorType colorname()
Gets the name of the detected color.
int32_t brightness(bool bRaw=false)
Gets the brightness value detected by the color sensor.
int32_t value()
Gets the value of the color sensor.
void setLight(ledState state)
Turns the led on the color sensor on or off.
bool detects(colorType color)
Check to see if the color sensor is detecting a color.
void objectDetected(void(*callback)(void))
Calls a function when the color sensor proximity sensor detects an object.
int32_t hue()
Gets the hue detected by the color sensor.
Bumper switch device class