diff --git a/esphome/cat-medication-tracker.yaml b/esphome/cat-medication-tracker.yaml index 47c2e26..4f4570c 100644 --- a/esphome/cat-medication-tracker.yaml +++ b/esphome/cat-medication-tracker.yaml @@ -10,6 +10,10 @@ esphome: then: - light.turn_on: backlight - 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 esp32: @@ -58,14 +62,13 @@ spi: miso_pin: GPIO12 display: - - platform: ili9xxx + - platform: mipi_spi model: ILI9488 spi_id: tft_spi cs_pin: GPIO15 dc_pin: GPIO2 reset_pin: GPIO4 rotation: 0 - mirror_x: true invert_colors: false color_order: bgr data_rate: 10MHz