Skip to content

Commit b85d84d

Browse files
committed
Added autobrightness to API
1 parent 293cc35 commit b85d84d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/PixelIt.ino

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,17 @@ void CreateFrames(JsonObject &json, int forceDuration)
13191319
}
13201320
}
13211321

1322+
// Enable/Disable automatic brightness control
1323+
if (json.containsKey("autobrightness"))
1324+
{
1325+
logMessage += F("Brightness Automatic Control, ");
1326+
if (json["autobrightness"].as<bool>() != matrixBrightnessAutomatic)
1327+
{
1328+
sendMatrixInfo = true;
1329+
matrixBrightnessAutomatic = json["autobrightness"].as<bool>();
1330+
}
1331+
}
1332+
13221333
// Set GPIO
13231334
if (json.containsKey("setGpio"))
13241335
{

0 commit comments

Comments
 (0)