diff --git a/esphome/cat-medication-tracker.yaml b/esphome/cat-medication-tracker.yaml index c724dfd..7e55717 100644 --- a/esphome/cat-medication-tracker.yaml +++ b/esphome/cat-medication-tracker.yaml @@ -9,17 +9,6 @@ esphome: priority: 100 then: - light.turn_on: backlight - - delay: 300ms - - lambda: |- - // Override MADCTL to 0x48: MX=1, BGR=1 — fixes horizontal mirror - uint8_t cmd = 0x36, dat = 0x48; - digitalWrite(2, LOW); // DC = command - id(my_display)->enable(); // assert CS - id(my_display)->write_array(&cmd, 1); // MADCTL command - digitalWrite(2, HIGH); // DC = data - id(my_display)->write_array(&dat, 1); // MX=1, BGR=1 - id(my_display)->disable(); // deassert CS - - component.update: my_display esp32: board: esp32dev @@ -76,6 +65,8 @@ display: rotation: 0 invert_colors: false color_order: bgr + init_sequence: + - [0x36, 0x48] # MADCTL: MX=1, BGR=1 — correct portrait orientation for this board data_rate: 10MHz dimensions: width: 320