38 return ev3_color_sensor_get_reflect(m_port);
48 ev3_color_sensor_get_rgb_raw(m_port, &color);
58 return ev3_color_sensor_get_ambient(m_port);
67 return ev3_color_sensor_get_color(m_port);
Class Sensor. API for working with sensor.
colorid_t getColor()
Get color.
int getAmbient()
Get ambient light intensity. Red LEDs off.
rgb_raw_t getReflectedRawRgb()
Get raw reflected light intensity (red, green, blue). Red LED on.
EV3RT CPP API for sensor.
SensorPort
Enum with index of sensor port.
ColorSensor(SensorPort port)
Constructor of class ColorSensor.
Class ColorSensor. API for working with color sensor.
int getReflected()
Get reflected light intensity. Red LED on.