mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Add LCD shutdown method.
Resets LCD controller, turns off backlight.
This commit is contained in:
parent
b5802aadda
commit
98a1eb5c1c
@ -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() ) {
|
||||
|
@ -42,6 +42,7 @@ public:
|
||||
void operator=(const ILI9341&) = delete;
|
||||
|
||||
void init();
|
||||
void shutdown();
|
||||
|
||||
void fill_rectangle(ui::Rect r, const ui::Color c);
|
||||
void fill_circle(
|
||||
|
Loading…
Reference in New Issue
Block a user