Add 12V brightness limiter and configurable per-led current (#295)

This commit is contained in:
cschwinne
2019-11-12 19:33:34 +01:00
parent 6989b1730e
commit b3d728df91
11 changed files with 138 additions and 89 deletions

View File

@@ -223,8 +223,14 @@ void getSettingsJS(byte subPage, char* dest)
}
if (subPage == 2) {
#ifdef ESP8266
#if LEDPIN == 3
oappend("d.Sf.LC.max=500;");
#endif
#endif
sappend('v',"LC",ledCount);
sappend('v',"MA",strip.ablMilliampsMax);
sappend('v',"LA",strip.milliampsPerLed);
if (strip.currentMilliamps)
{
sappends('m',"(\"pow\")[0]","");