Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
neopixel_string.h@0:66a5d46a740f, 2015-10-25 (annotated)
- Committer:
- dwini
- Date:
- Sun Oct 25 11:24:54 2015 +0000
- Revision:
- 0:66a5d46a740f
- Child:
- 2:bb9ebad05691
Start of NeoPixelString library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dwini | 0:66a5d46a740f | 1 | #pragma once |
dwini | 0:66a5d46a740f | 2 | |
dwini | 0:66a5d46a740f | 3 | #include "neopixel.h" |
dwini | 0:66a5d46a740f | 4 | #include "colors.h" |
dwini | 0:66a5d46a740f | 5 | |
dwini | 0:66a5d46a740f | 6 | class NeoPixelString : public neopixel::PixelArray { |
dwini | 0:66a5d46a740f | 7 | |
dwini | 0:66a5d46a740f | 8 | private: |
dwini | 0:66a5d46a740f | 9 | unsigned int length; |
dwini | 0:66a5d46a740f | 10 | neopixel::Pixel * pixels; |
dwini | 0:66a5d46a740f | 11 | |
dwini | 0:66a5d46a740f | 12 | public: |
dwini | 0:66a5d46a740f | 13 | NeoPixelString(PinName spi_pin, unsigned int length); |
dwini | 0:66a5d46a740f | 14 | void update(neopixel::Pixel singlecolor); |
dwini | 0:66a5d46a740f | 15 | void diagnose(void); |
dwini | 0:66a5d46a740f | 16 | }; |