You can now set LED_MAX_MILLIAMPS if your power supply is limited.

This commit is contained in:
2019-06-12 20:48:56 +02:00
parent f8c696c384
commit ca980b0c9f
2 changed files with 4 additions and 0 deletions

View File

@ -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);
}
};