pitrix/src/fastled.cpp

13 lines
359 B
C++
Raw Permalink Normal View History

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);
if (LED_MAX_MILLIAMPS > 0) {
FastLED.setMaxPowerInVoltsAndMilliamps(5, LED_MAX_MILLIAMPS);
}
2019-05-28 19:19:35 +00:00
};