PMKIND
Dependencies: rohm-rpr0521 rohm-sensor-hal Servo TextLCD
color.h
- Committer:
- pavledjo
- Date:
- 2021-06-27
- Revision:
- 1:7b52bdcdac4e
- Parent:
- 0:51001d8fdeff
File content as of revision 1:7b52bdcdac4e:
class ColorSensor{ public: ColorSensor(PinName ss0, PinName ss1, PinName ss2, PinName ss3, PinName sout); DigitalOut s0; DigitalOut s1; DigitalOut s2; DigitalOut s3; InterruptIn _out; Ticker ts; void poll(); int interrupted; int countR; int countG; int countB; int counter; int flag; int getRed(); int getGreen(); int getBlue(); void getReading(); void incCount(); private: protected: };