nima aghli
/
WS2811
for thww WS2811 RGB
Fork of WS2811 by
WS2811.h
- Committer:
- Drohne
- Date:
- 2016-06-25
- Revision:
- 3:2fbb2f0e79fb
- Parent:
- 2:ccf3f0c36dae
- Child:
- 4:46b52a6a943b
File content as of revision 3:2fbb2f0e79fb:
/* * Creator: Matthias Hemmer * created: 22.06.2016 * Board: Himbed M0+ * Processor: LPC11U68 * * 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.0000000000001 //////////////////// #define LED_MAX 60// // switch the value for your number of pixels //////////////////// #define middle 29// // define the mid of the pixels: to make it work middle-1 /////////////////// #define OFF_DELAY 0.001 // define a cleary blue light #define Green 100 #define Red 255 #define Blue 125 void sendColours(int pos, uint8_t r, uint8_t g, uint8_t b);