Skip to content

Commit

Permalink
CO2 Gadget Beta v0.14.008 low-power
Browse files Browse the repository at this point in the history
chore: Add empty displaySleep() function for OLED to fix compile error
  • Loading branch information
melkati committed Jun 11, 2024
1 parent 392f717 commit eb9090f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CO2_Gadget_OLED.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ void setDisplayBrightness(uint16_t newBrightness) {
actualDisplayBrightness = newBrightness;
}

// https://github.com/olikraus/u8g2/wiki/u8g2reference#setpowersave
void displaySleep(bool value) {
// if (value) {
// u8g2.setPowerSave(value);
// } else {
// u8g2.setPowerSave(value);
// }
}

void turnOffDisplay() {
setDisplayBrightness(0); // Turn off the display
}
Expand Down

0 comments on commit eb9090f

Please sign in to comment.