Fix display mirroring and update SDMMC card pins
This commit is contained in:
@@ -247,16 +247,16 @@ static esp_err_t panel_st7305_mirror(esp_lcd_panel_t *panel, bool mirror_x, bool
|
||||
st7305_panel_t *st7305 = __containerof(panel, st7305_panel_t, base);
|
||||
esp_lcd_panel_io_handle_t io = st7305->io;
|
||||
if (mirror_x) {
|
||||
st7305->madctl_val |= ST7305_MADCTL_MY;
|
||||
} else {
|
||||
st7305->madctl_val &= ~ST7305_MADCTL_MY;
|
||||
}
|
||||
if (mirror_y) {
|
||||
st7305->madctl_val |= ST7305_MADCTL_MX;
|
||||
} else {
|
||||
st7305->madctl_val &= ~ST7305_MADCTL_MX;
|
||||
}
|
||||
return esp_lcd_panel_io_tx_param(io, ST7305_CMD_MADCTL, (uint8_t[]) { st7305->madctl_val }, 1);
|
||||
if (mirror_y) {
|
||||
st7305->madctl_val |= ST7305_MADCTL_MY;
|
||||
} else {
|
||||
st7305->madctl_val &= ~ST7305_MADCTL_MY;
|
||||
}
|
||||
return esp_lcd_panel_io_tx_param(io, ST7305_CMD_MADCTL, &st7305->madctl_val, 1);
|
||||
}
|
||||
|
||||
static esp_err_t panel_st7305_swap_xy(esp_lcd_panel_t *panel, bool swap_axes)
|
||||
|
||||
Reference in New Issue
Block a user