jakob schreib mir bitte die methode auf int postion
Fork of Mbed-Mensch-3-Menu by
Led/WS2812B.h@7:bd4b77580026, 2016-03-14 (annotated)
- Committer:
- ogris
- Date:
- Mon Mar 14 18:06:26 2016 +0000
- Revision:
- 7:bd4b77580026
- Parent:
- 5:f4db4cd245e3
q
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ladner | 1:0eaa7682f7e1 | 1 | #include "mbed.h" |
ladner | 1:0eaa7682f7e1 | 2 | |
ladner | 1:0eaa7682f7e1 | 3 | class LedOut |
ladner | 1:0eaa7682f7e1 | 4 | { |
ladner | 1:0eaa7682f7e1 | 5 | public: |
ladner | 1:0eaa7682f7e1 | 6 | LedOut(PinName pin); |
ladner | 1:0eaa7682f7e1 | 7 | void WriteLed(uint32_t leddata); |
ladner | 1:0eaa7682f7e1 | 8 | private: |
ladner | 1:0eaa7682f7e1 | 9 | DigitalOut Output; |
ladner | 1:0eaa7682f7e1 | 10 | void writeledbit(char wert); |
ladner | 1:0eaa7682f7e1 | 11 | }; |
ladner | 1:0eaa7682f7e1 | 12 | |
ladner | 1:0eaa7682f7e1 | 13 | uint32_t Brightness(uint32_t Colour,char Brightness); |
ladner | 1:0eaa7682f7e1 | 14 | |
ladner | 1:0eaa7682f7e1 | 15 | class RGBOut |
ladner | 1:0eaa7682f7e1 | 16 | { |
ladner | 1:0eaa7682f7e1 | 17 | public: |
ladner | 1:0eaa7682f7e1 | 18 | RGBOut(PinName rPin,PinName gPin,PinName bPin); |
ladner | 1:0eaa7682f7e1 | 19 | void set(float r,float g,float b); |
ladner | 1:0eaa7682f7e1 | 20 | void set_RGB(uint32_t leddata); |
ladner | 1:0eaa7682f7e1 | 21 | void set_r(float r); |
ladner | 1:0eaa7682f7e1 | 22 | void set_g(float g); |
ladner | 1:0eaa7682f7e1 | 23 | void set_b(float b); |
ladner | 1:0eaa7682f7e1 | 24 | private: |
ladner | 1:0eaa7682f7e1 | 25 | PwmOut Rout; |
ladner | 1:0eaa7682f7e1 | 26 | PwmOut Gout; |
ladner | 1:0eaa7682f7e1 | 27 | PwmOut Bout; |
ladner | 1:0eaa7682f7e1 | 28 | }; |