EV3RT C++ API Reference  Version 1.0
An RTOS-based development platform for LEGO Mindstorms EV3.
ColorSensor.h
1 //
2 // ColorSensor.h
3 //
4 // Copyright (c) 2015-2016 Embedded Technology Software Design Robot Contest
5 //
6 
7 #ifndef EV3CPPAPI_COLORSENSOR_H_
8 #define EV3CPPAPI_COLORSENSOR_H_
9 
10 #include "Sensor.h"
11 
12 namespace ev3api {
16 class ColorSensor :public Sensor
17 {
18 public:
24  explicit ColorSensor(ePortS port);
25 
31  virtual ~ColorSensor(void);
32 
38  uint8_t getAmbient(void) const;
39 
45  int8_t getBrightness(void) const;
46 
52  colorid_t getColorNumber(void) const;
53 
59  void getRawColor(rgb_raw_t& rgb) const;
60 }; // class ColorSensor
61 } // namespace ev3api
62 
63 #endif // ! EV3CPPAPI_COLORSENSOR_H_
Definition: Clock.h:12
colorid_t getColorNumber(void) const
ePortS
Definition: Port.h:18
int8_t getBrightness(void) const
virtual ~ColorSensor(void)
ColorSensor(ePortS port)
Definition: Sensor.h:18
Definition: ColorSensor.h:16
uint8_t getAmbient(void) const
void getRawColor(rgb_raw_t &rgb) const