8 using namespace ev3api;
13 :
Sensor(port, COLOR_SENSOR)
15 (void)ev3_color_sensor_get_reflect(
getPort());
29 return ev3_color_sensor_get_ambient(
getPort());
36 return ev3_color_sensor_get_reflect(
getPort());
43 return ev3_color_sensor_get_color(
getPort());
50 ev3_color_sensor_get_rgb_raw(
getPort(), &rgb);
void getRawColor(rgb_raw_t &rgb) const
virtual ~ColorSensor(void)
colorid_t getColorNumber(void) const
uint8_t getAmbient(void) const
int8_t getBrightness(void) const
sensor_port_t getPort(void) const