This is the library to use the TCS3200 on the mbed

Dependents:   ovvioBug ovvioBug my_example_TCS3200 Ex_TCS3200 ... more

color.h

Committer:
wingblank
Date:
2015-10-23
Revision:
1:9edf5a7e29e6
Parent:
0:6962dbee8f4b

File content as of revision 1:9edf5a7e29e6:


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:
    
    
    };