A conversion of the excellent Adafruit WS2801 library for Arduino to work on mbed

Dependents:   WiFiDipCortex_Cheerlights

Revision:
1:6ff477690983
Parent:
0:582e1b9c1cc1
Child:
2:2fdaa13896a4
--- a/Adafruit_WS2801.h	Fri Mar 08 08:49:04 2013 +0000
+++ b/Adafruit_WS2801.h	Fri Mar 08 13:25:50 2013 +0000
@@ -17,9 +17,9 @@
   Adafruit_WS2801(uint16_t n, PinName dpin, PinName cpin, uint8_t order=WS2801_RGB);
   Adafruit_WS2801(uint16_t x, uint16_t y, PinName dpin, PinName cpin, uint8_t order=WS2801_RGB);
   // Use SPI hardware; specific pins only:
-  Adafruit_WS2801(uint16_t n, uint8_t order=WS2801_RGB);
+//  Adafruit_WS2801(uint16_t n, uint8_t order=WS2801_RGB);
   // Empty constructor; init pins/strand length/data order later:
-  Adafruit_WS2801();
+//  Adafruit_WS2801();
   // Release memory (as needed):
   ~Adafruit_WS2801();
 
@@ -31,7 +31,7 @@
     setPixelColor(uint16_t x, uint16_t y, uint8_t r, uint8_t g, uint8_t b),
     setPixelColor(uint16_t x, uint16_t y, uint32_t c),
     updatePins(PinName dpin, PinName cpin), // Change pins, configurable
-    updatePins(void), // Change pins, hardware SPI
+//    updatePins(void), // Change pins, hardware SPI
     updateLength(uint16_t n), // Change strand length
     updateOrder(uint8_t order); // Change data order
   uint16_t
@@ -51,13 +51,10 @@
     ;
   DigitalOut  clkpin;
   DigitalOut  datapin;     // Clock & data pin numbers
-//    clkpinmask, datapinmask; // Clock & data PORT bitmasks
-//  volatile uint8_t
-//    *clkport  , *dataport;   // Clock & data PORT registers
   void
-    alloc(uint16_t n),
-    startSPI(void);
-  bool
-    hardwareSPI, // If 'true', using hardware SPI
-    begun;       // If 'true', begin() method was previously invoked
+    alloc(uint16_t n);
+//    startSPI(void);
+  //bool
+//    hardwareSPI, // If 'true', using hardware SPI
+  bool  begun;       // If 'true', begin() method was previously invoked
 };