Merge pull request #560 from srg74/master

OLED contrast set to 10
This commit is contained in:
Aircoookie 2020-01-06 19:39:39 +01:00 committed by GitHub
commit ed560a338e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL,
void userSetup() { void userSetup() {
u8x8.begin(); u8x8.begin();
u8x8.setPowerSave(0); u8x8.setPowerSave(0);
u8x8.setContrast(10); //Contrast setup will help to preserve OLED lifetime. In case OLED need to be brighter increase number up to 255
u8x8.setFont(u8x8_font_chroma48medium8_r); u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.drawString(0, 0, "Loading..."); u8x8.drawString(0, 0, "Loading...");
} }