mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 16:49:36 +00:00
fix some bugs due to framesync not fired on stealth mode (#2834)
This commit is contained in:
@@ -77,13 +77,17 @@ void lcd_display_off() {
|
||||
io.lcd_data_write_command_and_data(0x28, {});
|
||||
}
|
||||
|
||||
void lcd_sleep() {
|
||||
void lcd_sleep(bool hw_sleep = true) {
|
||||
lcd_display_off();
|
||||
lcd_sleep_in();
|
||||
if (hw_sleep) {
|
||||
lcd_sleep_in();
|
||||
}
|
||||
}
|
||||
|
||||
void lcd_wake() {
|
||||
lcd_sleep_out();
|
||||
void lcd_wake(bool hw_sleep = true) {
|
||||
if (hw_sleep) {
|
||||
lcd_sleep_out();
|
||||
}
|
||||
lcd_display_on();
|
||||
}
|
||||
|
||||
@@ -394,12 +398,12 @@ void ILI9341::shutdown() {
|
||||
lcd_reset();
|
||||
}
|
||||
|
||||
void ILI9341::sleep() {
|
||||
lcd_sleep();
|
||||
void ILI9341::sleep(bool hw_sleep) {
|
||||
lcd_sleep(hw_sleep);
|
||||
}
|
||||
|
||||
void ILI9341::wake() {
|
||||
lcd_wake();
|
||||
void ILI9341::wake(bool hw_sleep) {
|
||||
lcd_wake(hw_sleep);
|
||||
}
|
||||
|
||||
void ILI9341::fill_rectangle(ui::Rect r, const ui::Color c) {
|
||||
|
||||
@@ -48,8 +48,8 @@ class ILI9341 {
|
||||
void init();
|
||||
void shutdown();
|
||||
|
||||
void sleep();
|
||||
void wake();
|
||||
void sleep(bool hw_sleep = true);
|
||||
void wake(bool hw_sleep = true);
|
||||
|
||||
void fill_rectangle(ui::Rect r, const ui::Color c);
|
||||
void fill_rectangle_unrolled8(ui::Rect r, const ui::Color c);
|
||||
|
||||
Reference in New Issue
Block a user