for thww WS2811 RGB

Dependencies:   mbed

Fork of WS2811 by Bulme Projekt

Revision:
3:2fbb2f0e79fb
Parent:
2:ccf3f0c36dae
Child:
4:46b52a6a943b
--- a/WS2811.h	Fri Apr 29 07:46:25 2016 +0000
+++ b/WS2811.h	Sat Jun 25 18:53:38 2016 +0000
@@ -1,8 +1,8 @@
 /*
 *           Creator: Matthias Hemmer
-*           created: 15.04.2016
-*       Board: Himbed v.2 Bulme
-*       Processor: Cortex M0       
+*           created: 22.06.2016
+*       Board: Himbed M0+
+*       Processor: LPC11U68       
 *
 *   function: write a register of 8 bits to the WS2811 RGBs 
 *   
@@ -16,8 +16,14 @@
 
 #define HIGH_SIGNAL 4       // Logic 1
 #define LOW_SIGNAL 1        // Logic 0
-#define DELAY 0.000000000001          
-#define LED_MAX 57           // define the RGBs you have
+#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
@@ -25,6 +31,4 @@
 #define Red     255
 #define Blue    125
 
-void sendColours(int pos, uint8_t r, uint8_t g, uint8_t b);
-void clear();
-void runlight(float waittime);
\ No newline at end of file
+void sendColours(int pos, uint8_t r, uint8_t g, uint8_t b);
\ No newline at end of file