diff --git a/esphome/cat-medication-tracker.yaml b/esphome/cat-medication-tracker.yaml index 9f9ec8c..6b54b2c 100644 --- a/esphome/cat-medication-tracker.yaml +++ b/esphome/cat-medication-tracker.yaml @@ -14,7 +14,7 @@ esphome: - priority: -100 then: - lambda: |- - // Send MADCTL 0x88: MY=1, BGR=1 — correct portrait for this board + // Send MADCTL 0x08: MY=0, MX=0, BGR=1 — correct portrait for this board // Uses ESP-IDF SPI master API to bypass ESPHome's buffered display layer spi_device_handle_t disp_fix; spi_device_interface_config_t cfg = {}; @@ -31,7 +31,7 @@ esphome: t.tx_data[0] = 0x36; // MADCTL register spi_device_polling_transmit(disp_fix, &t); gpio_set_level((gpio_num_t)2, 1); // DC = data - t.tx_data[0] = 0x88; // MY=1, BGR=1 + t.tx_data[0] = 0x08; // MY=0, MX=0, BGR=1 spi_device_polling_transmit(disp_fix, &t); gpio_set_level((gpio_num_t)15, 1); // CS high spi_bus_remove_device(disp_fix);