ws2812b sample firmware.

Dependencies:   BurstSPI

Dependents:   mbed_ws2812b mbed_ws2812b

Fork of PixelArray by Jacob Bramley

Revision:
0:38eeab21a162
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/neopixel-spi.h	Thu Jul 24 12:19:20 2014 +0000
@@ -0,0 +1,29 @@
+#ifndef NEOPIXEL_SPI
+#define NEOPIXEL_SPI
+
+#include <stdint.h>
+#include "mbed.h"
+#include "BurstSPI.h"
+
+namespace neopixel {
+
+struct Pixel {
+  uint8_t red;
+  uint8_t green;
+  uint8_t blue;
+};
+
+// Drive a chain of NeoPixels. The 'count' parameter specifies the length of the chain.
+class Array {
+ public:
+  Array(PinName out);
+  
+  void Update(Pixel buffer[], size_t length);
+
+ private:
+  BurstSPI spi_;
+};
+
+}
+
+#endif
\ No newline at end of file