jakob schreib mir bitte die methode auf int postion
Fork of Mbed-Mensch-3-Menu by
Led/WS2812B.h
- Committer:
- ogris
- Date:
- 2016-03-14
- Revision:
- 7:bd4b77580026
- Parent:
- 5:f4db4cd245e3
File content as of revision 7:bd4b77580026:
#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; };