🪄 Formats LEDService
This commit is contained in:
@@ -15,8 +15,7 @@
|
|||||||
#define COLOR_ORDER GRB
|
#define COLOR_ORDER GRB
|
||||||
#define CHIPSET WS2811
|
#define CHIPSET WS2811
|
||||||
|
|
||||||
class LEDService
|
class LEDService {
|
||||||
{
|
|
||||||
private:
|
private:
|
||||||
TaskManager *_taskManager;
|
TaskManager *_taskManager;
|
||||||
|
|
||||||
@@ -30,9 +29,7 @@ private:
|
|||||||
int direction = 1;
|
int direction = 1;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LEDService(TaskManager *taskManager) :
|
LEDService(TaskManager *taskManager) : _taskManager(taskManager) {
|
||||||
_taskManager(taskManager)
|
|
||||||
{
|
|
||||||
FastLED.addLeds<CHIPSET, WS2812_PIN, COLOR_ORDER>(leds, WS2812_NUM_LEDS).setCorrection(TypicalLEDStrip);
|
FastLED.addLeds<CHIPSET, WS2812_PIN, COLOR_ORDER>(leds, WS2812_NUM_LEDS).setCorrection(TypicalLEDStrip);
|
||||||
currentPalette = OceanColors_p;
|
currentPalette = OceanColors_p;
|
||||||
currentBlending = LINEARBLEND;
|
currentBlending = LINEARBLEND;
|
||||||
@@ -59,5 +56,4 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user