Fix horizontal mirroring for ILI9488 display and update display configuration
This commit is contained in:
@@ -10,6 +10,10 @@ esphome:
|
|||||||
then:
|
then:
|
||||||
- light.turn_on: backlight
|
- light.turn_on: backlight
|
||||||
- delay: 300ms
|
- delay: 300ms
|
||||||
|
- lambda: |-
|
||||||
|
// Fix ILI9488 horizontal mirror: send MADCTL with MX=1, BGR=1
|
||||||
|
id(my_display)->command(0x36);
|
||||||
|
id(my_display)->data(0x48);
|
||||||
- component.update: my_display
|
- component.update: my_display
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
@@ -58,14 +62,13 @@ spi:
|
|||||||
miso_pin: GPIO12
|
miso_pin: GPIO12
|
||||||
|
|
||||||
display:
|
display:
|
||||||
- platform: ili9xxx
|
- platform: mipi_spi
|
||||||
model: ILI9488
|
model: ILI9488
|
||||||
spi_id: tft_spi
|
spi_id: tft_spi
|
||||||
cs_pin: GPIO15
|
cs_pin: GPIO15
|
||||||
dc_pin: GPIO2
|
dc_pin: GPIO2
|
||||||
reset_pin: GPIO4
|
reset_pin: GPIO4
|
||||||
rotation: 0
|
rotation: 0
|
||||||
mirror_x: true
|
|
||||||
invert_colors: false
|
invert_colors: false
|
||||||
color_order: bgr
|
color_order: bgr
|
||||||
data_rate: 10MHz
|
data_rate: 10MHz
|
||||||
|
|||||||
Reference in New Issue
Block a user