diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/backlight.h | 4 | ||||
-rw-r--r-- | firmware/export/config/samsungyh820.h | 15 |
2 files changed, 15 insertions, 4 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index a1c65a3b4e..6d029790b3 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h | |||
@@ -60,6 +60,10 @@ void backlight_set_on_button_hold(int index); | |||
60 | void lcd_set_sleep_after_backlight_off(int timeout_seconds); | 60 | void lcd_set_sleep_after_backlight_off(int timeout_seconds); |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #ifdef HAVE_LCD_SLEEP | ||
64 | void lcd_awake(void); | ||
65 | #endif | ||
66 | |||
63 | #else /* !HAVE_BACKLIGHT */ | 67 | #else /* !HAVE_BACKLIGHT */ |
64 | #define backlight_init() | 68 | #define backlight_init() |
65 | #endif /* !HAVE_BACKLIGHT */ | 69 | #endif /* !HAVE_BACKLIGHT */ |
diff --git a/firmware/export/config/samsungyh820.h b/firmware/export/config/samsungyh820.h index 52ed821370..d937a3ff6c 100644 --- a/firmware/export/config/samsungyh820.h +++ b/firmware/export/config/samsungyh820.h | |||
@@ -34,6 +34,9 @@ | |||
34 | #define LCD_DEPTH 16 /* 65536 colours */ | 34 | #define LCD_DEPTH 16 /* 65536 colours */ |
35 | #define LCD_PIXELFORMAT RGB565 | 35 | #define LCD_PIXELFORMAT RGB565 |
36 | 36 | ||
37 | /* LCD stays visible without backlight - simulator hint */ | ||
38 | #define HAVE_TRANSFLECTIVE_LCD | ||
39 | |||
37 | #ifndef BOOTLOADER | 40 | #ifndef BOOTLOADER |
38 | 41 | ||
39 | /* define this if you have a real-time clock */ | 42 | /* define this if you have a real-time clock */ |
@@ -42,12 +45,16 @@ | |||
42 | //#define HAVE_RTC_ALARM | 45 | //#define HAVE_RTC_ALARM |
43 | 46 | ||
44 | /* Define this if your LCD can be enabled/disabled */ | 47 | /* Define this if your LCD can be enabled/disabled */ |
45 | #define HAVE_LCD_ENABLE | 48 | /* #define HAVE_LCD_ENABLE */ |
46 | 49 | ||
47 | /* Define this if your LCD can be put to sleep. | 50 | /* Define this if your LCD can be put to sleep. |
48 | HAVE_LCD_ENABLE should be defined as well. */ | 51 | HAVE_LCD_ENABLE should be defined as well. |
49 | /* todo #define HAVE_LCD_SLEEP*/ | 52 | Note: with a transflective display, HAVE_LCD_ENABLE shouldn't be defined. |
50 | /* todo #define HAVE_LCD_SLEEP_SETTING */ | 53 | LCD gets disabled when setting to sleep. */ |
54 | #define HAVE_LCD_SLEEP | ||
55 | #define HAVE_LCD_SLEEP_SETTING | ||
56 | /* The same code may also be used when shutting down */ | ||
57 | #define HAVE_LCD_SHUTDOWN | ||
51 | #endif /* !BOOTLOADER */ | 58 | #endif /* !BOOTLOADER */ |
52 | 59 | ||
53 | /* Define this for LCD backlight available */ | 60 | /* Define this for LCD backlight available */ |