Testing WS2801

Dependencies:   mbed

Fork of ws2801 by Thomas Olsson

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