mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-26 23:17:16 +02:00
Merge branch 'develop' into hotfix/remove-wifi-qrcode
This commit is contained in:
@ -93,6 +93,8 @@ bool OledDisplay::begin(void) {
|
||||
return false;
|
||||
}
|
||||
|
||||
setBrightness(config.getDisplayBrightness());
|
||||
|
||||
isBegin = true;
|
||||
logInfo("begin");
|
||||
return true;
|
||||
@ -285,3 +287,7 @@ void OledDisplay::showDashboard(const char *status) {
|
||||
DISP()->drawStr(85, 63, strBuf);
|
||||
} while (DISP()->nextPage());
|
||||
}
|
||||
|
||||
void OledDisplay::setBrightness(int percent) {
|
||||
DISP()->setContrast((127 * percent) / 100);
|
||||
}
|
||||
|
Reference in New Issue
Block a user