mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Set MADCTL register during initialization
This commit is contained in:
parent
b857c86535
commit
5fa9f30c8b
@ -154,7 +154,7 @@ static esp_err_t panel_nt35510_init(esp_lcd_panel_t *panel)
|
||||
esp_lcd_panel_io_tx_param(io, LCD_CMD_SLPOUT << 8, NULL, 0);
|
||||
vTaskDelay(pdMS_TO_TICKS(100));
|
||||
esp_lcd_panel_io_tx_param(io, LCD_CMD_MADCTL << 8, (uint16_t[]) {
|
||||
0
|
||||
nt35510->madctl_val,
|
||||
}, 2);
|
||||
esp_lcd_panel_io_tx_param(io, LCD_CMD_COLMOD << 8, (uint16_t[]) {
|
||||
nt35510->colmod_cal,
|
||||
|
@ -150,7 +150,7 @@ static esp_err_t panel_st7789_init(esp_lcd_panel_t *panel)
|
||||
esp_lcd_panel_io_tx_param(io, LCD_CMD_SLPOUT, NULL, 0);
|
||||
vTaskDelay(pdMS_TO_TICKS(100));
|
||||
esp_lcd_panel_io_tx_param(io, LCD_CMD_MADCTL, (uint8_t[]) {
|
||||
0
|
||||
st7789->madctl_val,
|
||||
}, 1);
|
||||
esp_lcd_panel_io_tx_param(io, LCD_CMD_COLMOD, (uint8_t[]) {
|
||||
st7789->colmod_cal,
|
||||
|
Loading…
x
Reference in New Issue
Block a user