mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Recover from display sleep, use LCD sleep function.
This commit is contained in:
parent
894d4b955c
commit
b801366e4e
4 changed files with 54 additions and 14 deletions
|
@ -55,10 +55,7 @@ public:
|
|||
void run();
|
||||
void request_stop();
|
||||
|
||||
void set_display_sleep(bool new_value) {
|
||||
portapack::io.lcd_backlight(false);
|
||||
display_sleep = new_value;
|
||||
};
|
||||
void set_display_sleep(const bool sleep);
|
||||
|
||||
static inline void events_flag(const eventmask_t events) {
|
||||
if( thread_event_loop ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue