mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-29 19:51:29 -04:00
Add LCD shutdown method.
Resets LCD controller, turns off backlight.
This commit is contained in:
parent
b5802aadda
commit
98a1eb5c1c
2 changed files with 6 additions and 0 deletions
|
@ -225,6 +225,11 @@ void ILI9341::init() {
|
|||
io.lcd_backlight(1);
|
||||
}
|
||||
|
||||
void ILI9341::shutdown() {
|
||||
io.lcd_backlight(0);
|
||||
lcd_reset();
|
||||
}
|
||||
|
||||
void ILI9341::fill_rectangle(ui::Rect r, const ui::Color c) {
|
||||
const auto r_clipped = r.intersect(screen_rect());
|
||||
if( !r_clipped.is_empty() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue