PMKIND
Dependencies: rohm-rpr0521 rohm-sensor-hal Servo TextLCD
Diff: color.h
- Revision:
- 0:51001d8fdeff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/color.h Thu Jun 24 15:11:30 2021 +0000
@@ -0,0 +1,30 @@
+
+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:
+
+
+ };
\ No newline at end of file