commit 0ce9d7f74da6f133726ebc61eab10337a11e88cb
parent 0cc0143bb0f6716890c0fa39db63abb4e5e699ca
Author: Chartreuse <kit@ckits.ca>
Date: Sun, 15 Aug 2021 21:07:25 -0600
Working power-down test, with screen off
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/reform2-keyboard-fw/Keyboard.c b/reform2-keyboard-fw/Keyboard.c
@@ -845,6 +845,10 @@ void EnterPowerOff(void)
// capabilities, so we need to wake up every so often to check if it is pressed, and
// if so bring us out of power-off
// We can use the Watchdog timer to do this.
+
+ // Turn off OLED to save power
+ gfx_clear_screen();
+ gfx_off();
do {
wdt_reset();
WDTCSR = (1<<WDCE) | (1<<WDE); // Enable writes to watchdog