Skip to content

Instantly share code, notes, and snippets.

@nebman
Created November 15, 2025 09:03
Show Gist options
  • Select an option

  • Save nebman/02eb22e3bc36b3d74c38fb45cd2bfd99 to your computer and use it in GitHub Desktop.

Select an option

Save nebman/02eb22e3bc36b3d74c38fb45cd2bfd99 to your computer and use it in GitHub Desktop.

2.25-inch TFT LCD ST7789 small screen 76*284 module LCD full view SPI color screen

ESPHOME with st7789v platform (color order was wrong with this one)

display:
  - platform: st7789v
    model: CUSTOM
    height: 284
    width: 76
    offset_height: 82
    offset_width: 18
    rotation: 270
    

    backlight_pin: 
      number: GPIO8
      inverted: True

    cs_pin: GPIO10
    dc_pin: GPIO11
    reset_pin: GPIO1
    lambda: |-
      it.filled_rectangle(0,  0, it.get_width(), it.get_height(), id(my_red));
      it.print(0, 0, id(font1), "Hello World!");

ESPHOME with SPI MIPI

display:
  - platform: mipi_spi
    model: ST7789V

    dc_pin: GPIO11
    cs_pin: GPIO10
    reset_pin: GPIO1
    enable_pin:
      number: GPIO8
      inverted: True

    dimensions: 
      height: 80 # only 76 useable but otherwise will show glitchy lines
      width: 284
      offset_height: 82
      offset_width: 18

    rotation: 270 # when choosing other rotations you must also swap the height/width and offsets
@DANILKA1802

Copy link
Copy Markdown

hello, your display working without any problems?
i cant make work my display. just random pixels after boot less than a second, then white screen

@nebman

nebman commented Jan 24, 2026

Copy link
Copy Markdown
Author

yes, but I switched to another one for my project in the meantime

@Stashchenko

Copy link
Copy Markdown

yes, but I switched to another one for my project in the meantime

working config with demo

https://github.com/Stashchenko/smartrack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment