2019-05-28 19:19:35 +00:00
|
|
|
#include "my_fastled.h"
|
|
|
|
|
|
|
|
CRGB leds[LED_COUNT];
|
|
|
|
|
2019-05-21 03:52:57 +00:00
|
|
|
void fastled_setup() {
|
2019-06-07 04:24:16 +00:00
|
|
|
FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, LED_COUNT).setCorrection(TypicalLEDStrip);
|
|
|
|
FastLED.setBrightness(BRIGHTNESS);
|
|
|
|
FastLED.setDither(TEMPORAL_DITHERING);
|
2019-06-12 18:48:56 +00:00
|
|
|
if (LED_MAX_MILLIAMPS > 0) {
|
|
|
|
FastLED.setMaxPowerInVoltsAndMilliamps(5, LED_MAX_MILLIAMPS);
|
|
|
|
}
|
2019-05-28 19:19:35 +00:00
|
|
|
};
|