PMKIND
Dependencies: rohm-rpr0521 rohm-sensor-hal Servo TextLCD
color.h
- Committer:
- emilija
- Date:
- 2021-06-24
- Revision:
- 0:51001d8fdeff
File content as of revision 0:51001d8fdeff:
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:
};