nima aghli
/
WS2811
for thww WS2811 RGB
Fork of WS2811 by
Diff: WS2811.h
- Revision:
- 0:c6a6fa47dadc
- Child:
- 1:165513b4e20a
diff -r 000000000000 -r c6a6fa47dadc WS2811.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WS2811.h Fri Apr 15 17:55:30 2016 +0000 @@ -0,0 +1,23 @@ +/* +* Creator: Matthias Hemmer +* created: 15.04.2016 +* Board: Himbed v.2 Bulme +* Processor: Cortex M0 +* +* function: write a register of 8 bits to the WS2811 RGBs +* +* supply voltage: 3V3 +* data wire: 5V +* GND: 0V +* +* bit: 255 brightest +* bit: 0 darkest +*/#include "mbed.h" + +#define HIGH_SIGNAL 4 // Logic 1 +#define LOW_SIGNAL 1 // Logic 0 +#define DELAY 0.1 +#define LED_MAX 3 // define the RGBs you have + +void sendColours(int pos, uint8_t r, uint8_t g, uint8_t b); +void off(); \ No newline at end of file