kusha / ST7789-TFT-LCD-ESPHome

Display Component ST7789 TFT LCD 240x240 for ESPHome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ST7789-TFT-LCD-ESPHome

Display Component ST7789 TFT LCD 240x240 for ESPHome (without CS pin)

Настройка ESPHome

  • Поместить папку st7789v с ее содержимым в папку my_components Вашей ESPHome
    Пример использования в коде программы
  • Place the st7789v folder with its contents in the my_components folder of your ESP Home
    Example of use in the program code
display:
  - platform: st7789v
    reset_pin: GPIO23                    
    dc_pin: GPIO16
    id: my_display
    dimensions: 240x240
    update_interval: 0.5s
  • С этим модифицированным компонентом корректно работает дисплей ST7789 240х240 без использования CS_pin
    Работа проверялась на дисплее 240х240 купленном на AliExpress
  • The ST7789 240x240 display works correctly with this modified component without using CS_pin
    The work was checked on a 240x240 display purchased on AliExpress

all

  • Если у Вас будет появляться ошибка переполнения буфера дисплея, то поместите также папку display с ее содержимым в папку my_components Вашей ESPHome.
    Когда я модифицировал компонент display, то случайно удалил функцию qr_code.
    Но зато добавил функцию draw_sector_
    void draw_sector_(int sector, double percentage, int center_x, int center_y, int radius, Color line_color, Color indicator_color);
  • If you get a display buffer overflow error, then also put the display folder with its contents in the my_components folder of your ESPHome.
    When I modified the display component, I accidentally deleted the qr_code function.
    But I added the draw_sector_ function
    void draw_sector_(int sector, double percentage, int center_x, int center_y, int radius, Color line_color, Color indicator_color);

About

Display Component ST7789 TFT LCD 240x240 for ESPHome


Languages

Language:C++ 89.2%Language:Python 10.8%