From eb9090fcddff075bfe62236801e7bca66e6c6419 Mon Sep 17 00:00:00 2001 From: Mario Mariete <11509521+melkati@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:43:13 +0200 Subject: [PATCH] CO2 Gadget Beta v0.14.008 low-power chore: Add empty displaySleep() function for OLED to fix compile error --- CO2_Gadget_OLED.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CO2_Gadget_OLED.h b/CO2_Gadget_OLED.h index 13dfd8f..7e7b89a 100644 --- a/CO2_Gadget_OLED.h +++ b/CO2_Gadget_OLED.h @@ -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 }