Library for controlling LED strips or arrays based on the WS2801 3-Channel Constant Current LED Driver, like the SF 32LED/m addressable LED strip. Any two digital out capable pins can be used for clock & data. also includes a header that defines the standart HTML color names

Dependents:   ws2801_controller

Revision:
3:2b362d164405
Parent:
0:b964d673c7db
--- a/ws2801.cpp	Tue Jun 14 19:39:18 2011 +0000
+++ b/ws2801.cpp	Sat Jun 18 00:33:14 2011 +0000
@@ -59,7 +59,7 @@
 wait_us(_reset_delay);
 }
 //------------------------------------------------------------------------------------------------------------
-int ws2801::setlevel(int level)
+int ws2801::level(int level)
 {
 if((level <= 100) && level)
   {
@@ -70,9 +70,9 @@
 }
 
 //------------------------------------------------------------------------------------------------------------
-int ws2801::setdelay(int reset_delay)
+int ws2801::delay(uint32_t reset_delay)
 {
-if(reset_delay <= 0x0fffffff)_reset_delay = reset_delay;
+if(reset_delay <= 0xffffffff)_reset_delay = reset_delay;
 return _reset_delay;
 }
 //---------EOF---------------EOF------------------------------------------------------------------------------
\ No newline at end of file