Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Diff: neopixel_string.h
- Revision:
- 0:66a5d46a740f
- Child:
- 2:bb9ebad05691
diff -r 000000000000 -r 66a5d46a740f neopixel_string.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/neopixel_string.h Sun Oct 25 11:24:54 2015 +0000 @@ -0,0 +1,16 @@ +#pragma once + +#include "neopixel.h" +#include "colors.h" + +class NeoPixelString : public neopixel::PixelArray { + + private: + unsigned int length; + neopixel::Pixel * pixels; + + public: + NeoPixelString(PinName spi_pin, unsigned int length); + void update(neopixel::Pixel singlecolor); + void diagnose(void); +}; \ No newline at end of file