j

Dependencies:   mbed yeswecancoap C12832 LM75B

Committer:
arnedesmet
Date:
Fri Oct 23 11:51:28 2015 +0000
Revision:
0:92d2ef9f009d
Child:
1:92958e26bf2e
hallo;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
arnedesmet 0:92d2ef9f009d 1
arnedesmet 0:92d2ef9f009d 2 #ifndef RGB_H
arnedesmet 0:92d2ef9f009d 3 #define RGB_H
arnedesmet 0:92d2ef9f009d 4 #include "mbed.h"
arnedesmet 0:92d2ef9f009d 5 #include "Color.h"
arnedesmet 0:92d2ef9f009d 6
arnedesmet 0:92d2ef9f009d 7 class RGB{
arnedesmet 0:92d2ef9f009d 8 public:
arnedesmet 0:92d2ef9f009d 9 RGB(PinName r_pin, PinName g_pin, PinName b_pin);
arnedesmet 0:92d2ef9f009d 10
arnedesmet 0:92d2ef9f009d 11 void setColor(Color color);
arnedesmet 0:92d2ef9f009d 12 void setColor(int red, int green, int blue);
arnedesmet 0:92d2ef9f009d 13 void setColor(int Color);
arnedesmet 0:92d2ef9f009d 14
arnedesmet 0:92d2ef9f009d 15 Color* getColor();
arnedesmet 0:92d2ef9f009d 16 void off();
arnedesmet 0:92d2ef9f009d 17 private:
arnedesmet 0:92d2ef9f009d 18 PwmOut* r_out;
arnedesmet 0:92d2ef9f009d 19 PwmOut* g_out;
arnedesmet 0:92d2ef9f009d 20 PwmOut* b_out;
arnedesmet 0:92d2ef9f009d 21
arnedesmet 0:92d2ef9f009d 22 float toFloat(int intValue);
arnedesmet 0:92d2ef9f009d 23
arnedesmet 0:92d2ef9f009d 24
arnedesmet 0:92d2ef9f009d 25 };
arnedesmet 0:92d2ef9f009d 26
arnedesmet 0:92d2ef9f009d 27 #endif