#ifndef LEDSTRIPEMANAGER_H #define LEDSTRIPEMANAGER_H #include "Arduino.h" #include const int LED_STRIP_POWER_PIN = D2; // The pin to switch on / off the LED stripe const int LED_STRIP_DATA_PIN = D8; // The pin to switch control the LED stripe class LEDStripManager { public: LEDStripManager(uint16_t numLeds, uint8_t pin); virtual ~LEDStripManager(); void begin(); void clear(); void show(); void on(); void off(); void setBrightness(uint8_t brightness); void setPixel(uint16_t index, uint8_t red, uint8_t green, uint8_t blue); void setAll(uint8_t red, uint8_t green, uint8_t blue); void rainbow(uint8_t wait); private: Adafruit_NeoPixel strip; uint32_t wheel(uint8_t pos); }; #endif