jakob schreib mir bitte die methode auf int postion
Fork of Mbed-Mensch-3-Menu by
Diff: WS2812B.h
- Revision:
- 1:0eaa7682f7e1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WS2812B.h Thu Feb 04 15:51:34 2016 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" + +class LedOut +{ + public: + LedOut(PinName pin); + void WriteLed(uint32_t leddata); + private: + DigitalOut Output; + void writeledbit(char wert); +}; + +uint32_t Brightness(uint32_t Colour,char Brightness); + +class RGBOut +{ +public: + RGBOut(PinName rPin,PinName gPin,PinName bPin); + void set(float r,float g,float b); + void set_RGB(uint32_t leddata); + void set_r(float r); + void set_g(float g); + void set_b(float b); +private: + PwmOut Rout; + PwmOut Gout; + PwmOut Bout; +};