You can now set LED_MAX_MILLIAMPS if your power supply is limited.
This commit is contained in:
@ -6,4 +6,7 @@ void fastled_setup() {
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user