Add LCD shutdown method.

Resets LCD controller, turns off backlight.
This commit is contained in:
Jared Boone 2015-08-01 14:36:27 -07:00
parent b5802aadda
commit 98a1eb5c1c
2 changed files with 6 additions and 0 deletions

View File

@ -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() ) {

View File

@ -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(