voor rian

Dependencies:   mbed

Committer:
de_geeter_alexander
Date:
Fri Oct 23 08:36:18 2015 +0000
Revision:
0:ff4d23667e75
lol

Who changed what in which revision?

UserRevisionLine numberNew contents of line
de_geeter_alexander 0:ff4d23667e75 1 #ifndef RGB_H
de_geeter_alexander 0:ff4d23667e75 2 #define RGB_H
de_geeter_alexander 0:ff4d23667e75 3
de_geeter_alexander 0:ff4d23667e75 4 #include "mbed.h"
de_geeter_alexander 0:ff4d23667e75 5 #include "color.h"
de_geeter_alexander 0:ff4d23667e75 6
de_geeter_alexander 0:ff4d23667e75 7 class Rgb {
de_geeter_alexander 0:ff4d23667e75 8 public:
de_geeter_alexander 0:ff4d23667e75 9 Rgb(PinName r_pin, PinName g_pin, PinName b_pin);
de_geeter_alexander 0:ff4d23667e75 10 //void setColor(Color* color);
de_geeter_alexander 0:ff4d23667e75 11 void setColor(int red, int green, int blue);
de_geeter_alexander 0:ff4d23667e75 12 void setColor(int color);
de_geeter_alexander 0:ff4d23667e75 13 //Color* getColor(void);
de_geeter_alexander 0:ff4d23667e75 14 void off(void);
de_geeter_alexander 0:ff4d23667e75 15
de_geeter_alexander 0:ff4d23667e75 16 private:
de_geeter_alexander 0:ff4d23667e75 17 /*
de_geeter_alexander 0:ff4d23667e75 18 PinName r_pin;
de_geeter_alexander 0:ff4d23667e75 19 PinName g_pin;
de_geeter_alexander 0:ff4d23667e75 20 PinName b_pin;
de_geeter_alexander 0:ff4d23667e75 21 */
de_geeter_alexander 0:ff4d23667e75 22 PwmOut* rout;
de_geeter_alexander 0:ff4d23667e75 23 PwmOut* gout;
de_geeter_alexander 0:ff4d23667e75 24 PwmOut* bout;
de_geeter_alexander 0:ff4d23667e75 25 int Pwmout;
de_geeter_alexander 0:ff4d23667e75 26 /*
de_geeter_alexander 0:ff4d23667e75 27 int Rout;
de_geeter_alexander 0:ff4d23667e75 28 int Gout;
de_geeter_alexander 0:ff4d23667e75 29 int Bout;
de_geeter_alexander 0:ff4d23667e75 30 */
de_geeter_alexander 0:ff4d23667e75 31 };
de_geeter_alexander 0:ff4d23667e75 32
de_geeter_alexander 0:ff4d23667e75 33 #endif