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

This commit is contained in:
fabian committed 2019-06-12 20:48:56 +02:00
1 parent f8c696c384
commit ca980b0c9f
2 files changed
+4

No files matched your search

+3
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);
}
};