j

Dependencies:   mbed yeswecancoap C12832 LM75B

lib/RGB.h

Committer:
arnedesmet
Date:
2015-10-23
Revision:
1:92958e26bf2e
Parent:
0:92d2ef9f009d

File content as of revision 1:92958e26bf2e:


#ifndef RGB_H
#define RGB_H
#include "mbed.h"
#include "Color.h"

class RGB{
    public:
        RGB(PinName r_pin, PinName g_pin, PinName b_pin);
    
        void setColor(Color color);
        void setColor(int red, int green, int blue);
        void setColor(int Color);
        
        Color* color;
        
        Color* getColor();
        void off();
    private:
        PwmOut* r_out;
        PwmOut* g_out;
        PwmOut* b_out;
        
        float toFloat(int intValue);
        
    
};

#endif