Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Mbed-Mensch-1 jakob_menschergeredichnicht4 Mbed-Mensch-8 jakob_15041 ... more
Diff: WS2812B.h
- Revision:
- 0:2981411e4f69
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/WS2812B.h Sun Mar 20 14:49:16 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;
+};