Skip to content

Commit

Permalink
Merge pull request #217 from miguepollo/fix_setbrightness
Browse files Browse the repository at this point in the history
Improvement of setBrightness
  • Loading branch information
lewisxhe authored Dec 9, 2023
2 parents 0528c49 + d13bfb0 commit e54fa50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LilyGoLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void LilyGoLib::setBrightness(uint8_t level)
writecommand(0x10); //display sleep
setPowerMode(PMODE_MONITOR);
}
if (!brightness) {
if (!brightness && level != 0) {
enableALDO2();
writecommand(0x11); //display wakeup
}
Expand Down

0 comments on commit e54fa50

Please sign in to comment.