ws2812b sample firmware.
Dependencies: BurstSPI
Dependents: mbed_ws2812b mbed_ws2812b
Fork of PixelArray by
Diff: neopixel-spi.h
- Revision:
- 2:3c3c41774cdf
- Parent:
- 1:adbbe3e9f2c5
- Child:
- 3:6f392fcb1d3b
--- a/neopixel-spi.h Fri Jul 25 15:18:03 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -#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