YH820: implement LCD sleep

use sleep setting to keep transflective LCD active without backlight

Change-Id: Iccd97e956d5e4a2a22abc90d15e9123782126ecb
This commit is contained in:
Sebastian Leonhardt 2016-06-25 15:25:30 +02:00
parent 60f60d9a12
commit 03e63da316
4 changed files with 57 additions and 8 deletions

View file

@ -34,6 +34,9 @@
#define LCD_DEPTH 16 /* 65536 colours */
#define LCD_PIXELFORMAT RGB565
/* LCD stays visible without backlight - simulator hint */
#define HAVE_TRANSFLECTIVE_LCD
#ifndef BOOTLOADER
/* define this if you have a real-time clock */
@ -42,12 +45,16 @@
//#define HAVE_RTC_ALARM
/* Define this if your LCD can be enabled/disabled */
#define HAVE_LCD_ENABLE
/* #define HAVE_LCD_ENABLE */
/* Define this if your LCD can be put to sleep.
HAVE_LCD_ENABLE should be defined as well. */
/* todo #define HAVE_LCD_SLEEP*/
/* todo #define HAVE_LCD_SLEEP_SETTING */
HAVE_LCD_ENABLE should be defined as well.
Note: with a transflective display, HAVE_LCD_ENABLE shouldn't be defined.
LCD gets disabled when setting to sleep. */
#define HAVE_LCD_SLEEP
#define HAVE_LCD_SLEEP_SETTING
/* The same code may also be used when shutting down */
#define HAVE_LCD_SHUTDOWN
#endif /* !BOOTLOADER */
/* Define this for LCD backlight available */