diff options
Diffstat (limited to 'Tcs230.h')
-rw-r--r-- | Tcs230.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Tcs230.h b/Tcs230.h new file mode 100644 index 0000000..7f25869 --- /dev/null +++ b/Tcs230.h @@ -0,0 +1,31 @@ +#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 |