This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
rc2007-rescue/Tcs230.h

32 lines
556 B
C
Raw Normal View History

2007-04-17 22:10:05 +00:00
#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