A library for SPI control of adafruit's neopixel ring and addressable LEDs.
Dependents: TI_NEOPIXEL_SPI_SAMPLE
Diff: TI_NEOPIXEL_SPI.h
- Revision:
- 2:0148ac5c90fa
- Parent:
- 0:c28aa7d4f97e
- Child:
- 3:f0859c280204
- Child:
- 5:69bb2a2fa11f
--- a/TI_NEOPIXEL_SPI.h Wed Jul 10 16:37:51 2019 +0000 +++ b/TI_NEOPIXEL_SPI.h Sun Jul 28 00:13:03 2019 +0000 @@ -15,14 +15,16 @@ { public: TI_NEOPIXEL_SPI(PinName input); + void switchLightOff(int count); - void switchLightOn(int count); + void switchLightOn(int count, int startCount, int endCount, rgbColor rgbColor); - void changeColor(int count, rgbColor rgbColor); - void changePointColor(int count, rgbColor topColor, rgbColor bottomColor); + void changeColor(int count, int startCount, int endCount, rgbColor rgbColor); + void changePointColor(int count, int topIndex, int endIndex, rgbColor topColor, rgbColor bottomColor); - void circle(int count, rgbColor rgbColor); + void circle(int count, int startCount, int endCount, rgbColor rgbColor); void chase(int count, int bufferCount, rgbColor c1, rgbColor c2); + void chaseRainbow(int count); void circleRainbow(int count); rgbColor convertHsvToRgb(float h, float s, float v);