PMKIND

Dependencies:   rohm-rpr0521 rohm-sensor-hal Servo TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers color.h Source File

color.h

00001 
00002 class ColorSensor{
00003     public:
00004     ColorSensor(PinName ss0, PinName ss1, PinName ss2, PinName ss3, PinName sout);
00005         DigitalOut s0;
00006     DigitalOut s1;
00007     DigitalOut s2;
00008     DigitalOut s3;
00009     InterruptIn _out;
00010     Ticker ts;
00011     void poll();
00012     int interrupted;
00013     int countR;
00014     int countG;
00015     int countB;
00016     int counter;
00017     int flag;
00018     int getRed();
00019     int getGreen();
00020     int getBlue();
00021     void getReading();
00022     void incCount();
00023 
00024     private: 
00025     
00026 
00027     protected:
00028     
00029     
00030     };