31 lines
556 B
C++
31 lines
556 B
C++
#ifndef _ROBOCUP_TCS230_H_
|
|
#define _ROBOCUP_TCS230_H_
|
|
|
|
enum Tcs230Colors {
|
|
Red = 0, Blue = 1, Clear = 2, Green = 3
|
|
};
|
|
|
|
enum Tcs230Scalings {
|
|
Off = 0, TwoPercent = 1, TwentyPercent = 2, Full = 3
|
|
};
|
|
|
|
class Tcs230
|
|
{
|
|
private:
|
|
bool enabled;
|
|
Tcs230Colors color;
|
|
Tcs230Scalings scaling;
|
|
public:
|
|
Tcs230();
|
|
|
|
bool getEnabled() {return enabled;}
|
|
void setEnabled(bool enabled);
|
|
|
|
Tcs230Colors getColor() {return color;}
|
|
void setColor(Tcs230Colors color);
|
|
|
|
Tcs230Scalings getScaling() {return scaling;}
|
|
void setScaling(Tcs230Scalings scaling);
|
|
};
|
|
|
|
#endif
|