Sansa Connect: Power off LCD to save power

Prevent startup screen flash by properly using AVR LCM functions. Power
off LCD when not needed to improve battery runtime.

Change-Id: I76e3c5c0208774f189fbc6f7d7b3c9e22c062285
This commit is contained in:
Tomasz Moń 2021-07-05 15:15:30 +02:00
parent 89d3ca77b6
commit 2acf8db3e1
No known key found for this signature in database
GPG key ID: 92BA8820D4D517C8
5 changed files with 92 additions and 48 deletions

View file

@ -81,9 +81,8 @@
#define LCD_PIXELFORMAT RGB565 /* rgb565 */
#define HAVE_LCD_ENABLE
#ifndef BOOTLOADER
#define HAVE_LCD_SLEEP
#endif
#define HAVE_LCD_SHUTDOWN
#define LCD_SLEEP_TIMEOUT (2*HZ)