test

Dependencies:   LM75B Color mbed yeswecancoap Rgb

lib/rgb.h

Committer:
de_geeter_alexander
Date:
2015-10-23
Revision:
0:06473a4ace3b

File content as of revision 0:06473a4ace3b:

#ifndef RGB_H
#define RGB_H
#include "mbed.h"
#include "color.h"
#include "LM75B.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);
    void off();
    
    private:
    PwmOut* r_out;
    PwmOut* g_out;
    PwmOut* b_out;
    float toFloat(int floater);
    };

#endif