1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-12 06:43:48 +01:00
This commit is contained in:
J. Nick Koston
2025-10-08 20:19:16 -10:00
parent 2cc7f9132a
commit 0a862ad76a
29 changed files with 100 additions and 100 deletions

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: 19
pages:
- id: page1
- id: axs15231_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -1,5 +1,5 @@
display:
- id: my_display
- id: cst226_display
platform: ili9xxx
model: ili9342
cs_pin: ${cs_pin}

View File

@@ -1,5 +1,5 @@
display:
- id: my_display
- id: cst816_display
platform: ili9xxx
dimensions: 480x320
model: ST7796

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: ${display_reset_pin}
pages:
- id: page1
- id: ektf2232_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ft5x06_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ft63x6_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -15,6 +15,6 @@ display:
model: SSD1306_128X64
reset_pin: ${reset_pin}
pages:
- id: page1
- id: graph_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: ${reset_pin}
pages:
- id: page1
- id: graphical_display_menu_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: ${display_reset_pin}
pages:
- id: page1
- id: gt911_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: ${reset_pin}
pages:
- id: page1
- id: lilygo_t5_47_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -1,6 +1,6 @@
display:
- platform: ili9xxx
id: main_lcd
id: qr_code_main_lcd
model: ili9342
cs_pin: ${cs_pin}
dc_pin: ${dc_pin}
@@ -9,11 +9,11 @@ display:
lambda: |-
// Draw a QR code in the center of the screen
auto scale = 2;
auto size = id(homepage_qr).get_size() * scale;
auto size = id(qr_code_homepage_qr).get_size() * scale;
auto x = (it.get_width() / 2) - (size / 2);
auto y = (it.get_height() / 2) - (size / 2);
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
it.qr_code(x, y, id(qr_code_homepage_qr), Color(255,255,255), scale);
qr_code:
- id: homepage_qr
- id: qr_code_homepage_qr
value: https://esphome.io/index.html

View File

@@ -6,15 +6,15 @@ display:
id: display1
contrast: 60%
pages:
- id: page1
- id: ssd1306_i2c_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1306_i2c_page2
lambda: |-
it.rectangle(0, 0, 10, 10);
on_page_change:
from: page1
to: page2
from: ssd1306_i2c_page1
to: ssd1306_i2c_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -5,15 +5,15 @@ display:
dc_pin: ${dc_pin}
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ssd1306_spi_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1306_spi_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: ssd1306_spi_page1
to: ssd1306_spi_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -5,15 +5,15 @@ display:
dc_pin: ${dc_pin}
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ssd1322_spi_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1322_spi_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: ssd1322_spi_page1
to: ssd1322_spi_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -5,15 +5,15 @@ display:
dc_pin: ${dc_pin}
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ssd1325_spi_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1325_spi_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: ssd1325_spi_page1
to: ssd1325_spi_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -5,15 +5,15 @@ display:
address: 0x3C
id: display1
pages:
- id: page1
- id: ssd1327_i2c_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1327_i2c_page2
lambda: |-
it.rectangle(0, 0, 10, 10);
on_page_change:
from: page1
to: page2
from: ssd1327_i2c_page1
to: ssd1327_i2c_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -5,15 +5,15 @@ display:
dc_pin: ${dc_pin}
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ssd1327_spi_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1327_spi_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: ssd1327_spi_page1
to: ssd1327_spi_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -4,15 +4,15 @@ display:
dc_pin: ${dc_pin}
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ssd1331_spi_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1331_spi_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: ssd1331_spi_page1
to: ssd1331_spi_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -5,15 +5,15 @@ display:
dc_pin: ${dc_pin}
reset_pin: ${reset_pin}
pages:
- id: page1
- id: ssd1351_spi_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: ssd1351_spi_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: ssd1351_spi_page1
to: ssd1351_spi_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -4,15 +4,15 @@ display:
address: 0x3C
id: display1
pages:
- id: page1
- id: st7567_i2c_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: st7567_i2c_page2
lambda: |-
it.rectangle(0, 0, 10, 10);
on_page_change:
from: page1
to: page2
from: st7567_i2c_page1
to: st7567_i2c_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -4,15 +4,15 @@ display:
dc_pin: ${dc_pin}
reset_pin: ${reset_pin}
pages:
- id: page1
- id: st7567_spi_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: st7567_spi_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: st7567_spi_page1
to: st7567_spi_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -9,15 +9,15 @@ display:
col_start: 0
row_start: 0
pages:
- id: page1
- id: st7735_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: st7735_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: st7735_page1
to: st7735_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -6,15 +6,15 @@ display:
reset_pin: ${reset_pin}
backlight_pin: ${backlight_pin}
pages:
- id: page1
- id: st7789v_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: st7789v_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: st7789v_page1
to: st7789v_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -4,15 +4,15 @@ display:
height: 128
width: 64
pages:
- id: page1
- id: st7920_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
- id: st7920_page2
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
on_page_change:
from: page1
to: page2
from: st7920_page1
to: st7920_page2
then:
lambda: |-
ESP_LOGD("display", "1 -> 2");

View File

@@ -4,7 +4,7 @@ display:
model: SSD1306_128X64
reset_pin: ${disp_reset_pin}
pages:
- id: page1
- id: tt21100_page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());

View File

@@ -1,27 +1,27 @@
# component declaration
wk2168_i2c:
- id: bridge_i2c
- id: wk2168_i2c_bridge
address: 0x70
uart:
- id: id0
- id: wk2168_i2c_uart0
channel: 0
baud_rate: 115200
stop_bits: 1
parity: none
- id: id1
- id: wk2168_i2c_uart1
channel: 1
baud_rate: 115200
- id: id2
- id: wk2168_i2c_uart2
channel: 2
baud_rate: 115200
- id: id3
- id: wk2168_i2c_uart3
channel: 3
baud_rate: 9600
# Ensures a sensor doesn't break validation
sensor:
- platform: a02yyuw
uart_id: id3
uart_id: wk2168_i2c_uart3
id: distance_sensor
# individual binary_sensor inputs
@@ -29,14 +29,14 @@ binary_sensor:
- platform: gpio
name: "pin_0"
pin:
wk2168_i2c: bridge_i2c
wk2168_i2c: wk2168_i2c_bridge
number: 0
mode:
input: true
- platform: gpio
name: "pin_1"
pin:
wk2168_i2c: bridge_i2c
wk2168_i2c: wk2168_i2c_bridge
number: 1
mode:
input: true
@@ -47,14 +47,14 @@ switch:
- platform: gpio
name: "pin_2"
pin:
wk2168_i2c: bridge_i2c
wk2168_i2c: wk2168_i2c_bridge
number: 2
mode:
output: true
- platform: gpio
name: "pin_3"
pin:
wk2168_i2c: bridge_i2c
wk2168_i2c: wk2168_i2c_bridge
number: 3
mode:
output: true

View File

@@ -1,28 +1,28 @@
wk2168_spi:
- id: bridge_spi
- id: wk2168_spi_bridge
cs_pin: ${cs_pin}
crystal: 11059200
data_rate: 1MHz
uart:
- id: id0
- id: wk2168_spi_uart0
channel: 0
baud_rate: 115200
stop_bits: 1
parity: none
- id: id1
- id: wk2168_spi_uart1
channel: 1
baud_rate: 115200
- id: id2
- id: wk2168_spi_uart2
channel: 2
baud_rate: 115200
- id: id3
- id: wk2168_spi_uart3
channel: 3
baud_rate: 9600
# Ensures a sensor doesn't break validation
sensor:
- platform: a02yyuw
uart_id: id3
uart_id: wk2168_spi_uart3
id: distance_sensor
# individual binary_sensor inputs
@@ -30,14 +30,14 @@ binary_sensor:
- platform: gpio
name: "pin_0"
pin:
wk2168_spi: bridge_spi
wk2168_spi: wk2168_spi_bridge
number: 0
mode:
input: true
- platform: gpio
name: "pin_1"
pin:
wk2168_spi: bridge_spi
wk2168_spi: wk2168_spi_bridge
number: 1
mode:
input: true
@@ -48,14 +48,14 @@ switch:
- platform: gpio
name: "pin_2"
pin:
wk2168_spi: bridge_spi
wk2168_spi: wk2168_spi_bridge
number: 2
mode:
output: true
- platform: gpio
name: "pin_3"
pin:
wk2168_spi: bridge_spi
wk2168_spi: wk2168_spi_bridge
number: 3
mode:
output: true

View File

@@ -1,6 +1,6 @@
# component declaration
wk2212_i2c:
- id: bridge_i2c
- id: wk2212_i2c_bridge
address: 0x70
uart:
- id: uart_i2c_id0
@@ -25,14 +25,14 @@ binary_sensor:
- platform: gpio
name: "pin_0"
pin:
wk2212_i2c: bridge_i2c
wk2212_i2c: wk2212_i2c_bridge
number: 0
mode:
input: true
- platform: gpio
name: "pin_1"
pin:
wk2212_i2c: bridge_i2c
wk2212_i2c: wk2212_i2c_bridge
number: 1
mode:
input: true
@@ -43,14 +43,14 @@ switch:
- platform: gpio
name: "pin_2"
pin:
wk2212_i2c: bridge_i2c
wk2212_i2c: wk2212_i2c_bridge
number: 2
mode:
output: true
- platform: gpio
name: "pin_3"
pin:
wk2212_i2c: bridge_i2c
wk2212_i2c: wk2212_i2c_bridge
number: 3
mode:
output: true

View File

@@ -1,22 +1,22 @@
wk2212_spi:
- id: bridge_spi
- id: wk2212_spi_bridge
cs_pin: ${cs_pin}
crystal: 11059200
data_rate: 1MHz
uart:
- id: id0
- id: wk2212_spi_uart0
channel: 0
baud_rate: 115200
stop_bits: 1
parity: none
- id: id1
- id: wk2212_spi_uart1
channel: 1
baud_rate: 9600
# Ensures a sensor doesn't break validation
sensor:
- platform: a02yyuw
uart_id: id1
uart_id: wk2212_spi_uart1
id: distance_sensor
# individual binary_sensor inputs
@@ -24,14 +24,14 @@ binary_sensor:
- platform: gpio
name: "pin_0"
pin:
wk2212_spi: bridge_spi
wk2212_spi: wk2212_spi_bridge
number: 0
mode:
input: true
- platform: gpio
name: "pin_1"
pin:
wk2212_spi: bridge_spi
wk2212_spi: wk2212_spi_bridge
number: 1
mode:
input: true
@@ -42,14 +42,14 @@ switch:
- platform: gpio
name: "pin_2"
pin:
wk2212_spi: bridge_spi
wk2212_spi: wk2212_spi_bridge
number: 2
mode:
output: true
- platform: gpio
name: "pin_3"
pin:
wk2212_spi: bridge_spi
wk2212_spi: wk2212_spi_bridge
number: 3
mode:
output: true