A library for adafruit's neo pixel ring and Addressable LED.
Diff: TI_NEOPIXEL.h
- Revision:
- 0:d7a396a60bdc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TI_NEOPIXEL.h Sat Jul 21 06:21:00 2018 +0000 @@ -0,0 +1,25 @@ +#ifndef MBED_TI_NEOPIXEL_H +#define MBED_TI_NEOPIXEL_H + +#include "mbed.h" +#include "PololuLedStrip.h" + +class TI_NEOPIXEL +{ +public: + TI_NEOPIXEL(PinName input); + void switchLightOff(int count); + void switchLightOn(int count); + + void changeColor(int count, rgb_color rgbColor); + void changePointColor(int count, rgb_color topColor, rgb_color bottomColor); + + void circle(int count, rgb_color rgbColor); + void circleRainbow(int count); + rgb_color convertHsvToRgb(float h, float s, float v); + +private: + PololuLedStrip _ledStrip; +}; + +#endif