A library for adafruit's neo pixel ring and Addressable LED.
TI_NEOPIXEL.h@0:d7a396a60bdc, 2018-07-21 (annotated)
- Committer:
- tichise
- Date:
- Sat Jul 21 06:21:00 2018 +0000
- Revision:
- 0:d7a396a60bdc
new
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tichise | 0:d7a396a60bdc | 1 | #ifndef MBED_TI_NEOPIXEL_H |
tichise | 0:d7a396a60bdc | 2 | #define MBED_TI_NEOPIXEL_H |
tichise | 0:d7a396a60bdc | 3 | |
tichise | 0:d7a396a60bdc | 4 | #include "mbed.h" |
tichise | 0:d7a396a60bdc | 5 | #include "PololuLedStrip.h" |
tichise | 0:d7a396a60bdc | 6 | |
tichise | 0:d7a396a60bdc | 7 | class TI_NEOPIXEL |
tichise | 0:d7a396a60bdc | 8 | { |
tichise | 0:d7a396a60bdc | 9 | public: |
tichise | 0:d7a396a60bdc | 10 | TI_NEOPIXEL(PinName input); |
tichise | 0:d7a396a60bdc | 11 | void switchLightOff(int count); |
tichise | 0:d7a396a60bdc | 12 | void switchLightOn(int count); |
tichise | 0:d7a396a60bdc | 13 | |
tichise | 0:d7a396a60bdc | 14 | void changeColor(int count, rgb_color rgbColor); |
tichise | 0:d7a396a60bdc | 15 | void changePointColor(int count, rgb_color topColor, rgb_color bottomColor); |
tichise | 0:d7a396a60bdc | 16 | |
tichise | 0:d7a396a60bdc | 17 | void circle(int count, rgb_color rgbColor); |
tichise | 0:d7a396a60bdc | 18 | void circleRainbow(int count); |
tichise | 0:d7a396a60bdc | 19 | rgb_color convertHsvToRgb(float h, float s, float v); |
tichise | 0:d7a396a60bdc | 20 | |
tichise | 0:d7a396a60bdc | 21 | private: |
tichise | 0:d7a396a60bdc | 22 | PololuLedStrip _ledStrip; |
tichise | 0:d7a396a60bdc | 23 | }; |
tichise | 0:d7a396a60bdc | 24 | |
tichise | 0:d7a396a60bdc | 25 | #endif |