20260326
This commit is contained in:
37
esphome/display/st7789v_t-cameraplus.yaml
Normal file
37
esphome/display/st7789v_t-cameraplus.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
# Backlight
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: $pin_dis_bk
|
||||
id: gpio_pin_dis_bk_backlight_pwm
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
output: gpio_pin_dis_bk_backlight_pwm
|
||||
name: "Display Backlight"
|
||||
id: back_light
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
# ST7789 Display
|
||||
# IPS Panel 1.3 Inch 260ppi 240x240 16-bit full color pixels
|
||||
spi:
|
||||
id: bus_tft
|
||||
clk_pin: ${pin_spi_clk}
|
||||
mosi_pin: ${pin_spi_mosi}
|
||||
#miso_pin: $spi_miso
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
model: st7789v
|
||||
id: my_display
|
||||
dimensions:
|
||||
height: 240
|
||||
width: 240
|
||||
offset_width: 0
|
||||
offset_height: 0
|
||||
invert_colors: true
|
||||
cs_pin: $pin_dis_cs
|
||||
dc_pin: $pin_dis_dc
|
||||
# update_interval: 2s
|
||||
# # Simple text test
|
||||
# lambda: |-
|
||||
# it.printf(0, 0, id(roboto16), "Test");
|
||||
Reference in New Issue
Block a user