Added Auto Brightness Limiter and power calculation

This commit is contained in:
cschwinne
2018-12-04 00:58:06 +01:00
parent 5489c74986
commit ff46e6ea86
10 changed files with 164 additions and 87 deletions

View File

@@ -191,6 +191,14 @@ void getSettingsJS(byte subPage)
if (subPage == 2) {
sappend('v',"LC",ledCount);
sappend('v',"MA",strip.ablMilliampsMax);
if (strip.currentMilliamps)
{
sappends('m',"(\"pow\")[0]","");
olen -= 2; //delete ";
oappendi(strip.currentMilliamps);
oappend("mA\";");
}
sappend('v',"CR",colS[0]);
sappend('v',"CG",colS[1]);
sappend('v',"CB",colS[2]);