mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-16 13:40:59 +00:00
invert display option (#2232)
* invert display option * text fix, format code
This commit is contained in:
@@ -307,6 +307,14 @@ void ILI9341::wake() {
|
||||
lcd_wake();
|
||||
}
|
||||
|
||||
void ILI9341::set_inverted(bool invert) {
|
||||
if (invert) {
|
||||
io.lcd_data_write_command_and_data(0x21, {});
|
||||
} else {
|
||||
io.lcd_data_write_command_and_data(0x20, {});
|
||||
}
|
||||
}
|
||||
|
||||
void ILI9341::fill_rectangle(ui::Rect r, const ui::Color c) {
|
||||
const auto r_clipped = r.intersect(screen_rect());
|
||||
if (!r_clipped.is_empty()) {
|
||||
|
Reference in New Issue
Block a user