mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 14:53:49 +01:00
tweak
This commit is contained in:
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: 19
|
reset_pin: 19
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: axs15231_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
display:
|
display:
|
||||||
- id: my_display
|
- id: cst226_display
|
||||||
platform: ili9xxx
|
platform: ili9xxx
|
||||||
model: ili9342
|
model: ili9342
|
||||||
cs_pin: ${cs_pin}
|
cs_pin: ${cs_pin}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
display:
|
display:
|
||||||
- id: my_display
|
- id: cst816_display
|
||||||
platform: ili9xxx
|
platform: ili9xxx
|
||||||
dimensions: 480x320
|
dimensions: 480x320
|
||||||
model: ST7796
|
model: ST7796
|
||||||
|
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${display_reset_pin}
|
reset_pin: ${display_reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ektf2232_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ft5x06_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ft63x6_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -15,6 +15,6 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: graph_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: graphical_display_menu_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${display_reset_pin}
|
reset_pin: ${display_reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: gt911_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: lilygo_t5_47_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
display:
|
display:
|
||||||
- platform: ili9xxx
|
- platform: ili9xxx
|
||||||
id: main_lcd
|
id: qr_code_main_lcd
|
||||||
model: ili9342
|
model: ili9342
|
||||||
cs_pin: ${cs_pin}
|
cs_pin: ${cs_pin}
|
||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
@@ -9,11 +9,11 @@ display:
|
|||||||
lambda: |-
|
lambda: |-
|
||||||
// Draw a QR code in the center of the screen
|
// Draw a QR code in the center of the screen
|
||||||
auto scale = 2;
|
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 x = (it.get_width() / 2) - (size / 2);
|
||||||
auto y = (it.get_height() / 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:
|
qr_code:
|
||||||
- id: homepage_qr
|
- id: qr_code_homepage_qr
|
||||||
value: https://esphome.io/index.html
|
value: https://esphome.io/index.html
|
||||||
|
@@ -6,15 +6,15 @@ display:
|
|||||||
id: display1
|
id: display1
|
||||||
contrast: 60%
|
contrast: 60%
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1306_i2c_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1306_i2c_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, 10, 10);
|
it.rectangle(0, 0, 10, 10);
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1306_i2c_page1
|
||||||
to: page2
|
to: ssd1306_i2c_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -5,15 +5,15 @@ display:
|
|||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1306_spi_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1306_spi_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1306_spi_page1
|
||||||
to: page2
|
to: ssd1306_spi_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -5,15 +5,15 @@ display:
|
|||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1322_spi_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1322_spi_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1322_spi_page1
|
||||||
to: page2
|
to: ssd1322_spi_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -5,15 +5,15 @@ display:
|
|||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1325_spi_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1325_spi_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1325_spi_page1
|
||||||
to: page2
|
to: ssd1325_spi_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -5,15 +5,15 @@ display:
|
|||||||
address: 0x3C
|
address: 0x3C
|
||||||
id: display1
|
id: display1
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1327_i2c_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1327_i2c_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, 10, 10);
|
it.rectangle(0, 0, 10, 10);
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1327_i2c_page1
|
||||||
to: page2
|
to: ssd1327_i2c_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -5,15 +5,15 @@ display:
|
|||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1327_spi_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1327_spi_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1327_spi_page1
|
||||||
to: page2
|
to: ssd1327_spi_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -4,15 +4,15 @@ display:
|
|||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1331_spi_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1331_spi_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1331_spi_page1
|
||||||
to: page2
|
to: ssd1331_spi_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -5,15 +5,15 @@ display:
|
|||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: ssd1351_spi_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: ssd1351_spi_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: ssd1351_spi_page1
|
||||||
to: page2
|
to: ssd1351_spi_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -4,15 +4,15 @@ display:
|
|||||||
address: 0x3C
|
address: 0x3C
|
||||||
id: display1
|
id: display1
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: st7567_i2c_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: st7567_i2c_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, 10, 10);
|
it.rectangle(0, 0, 10, 10);
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: st7567_i2c_page1
|
||||||
to: page2
|
to: st7567_i2c_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -4,15 +4,15 @@ display:
|
|||||||
dc_pin: ${dc_pin}
|
dc_pin: ${dc_pin}
|
||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: st7567_spi_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: st7567_spi_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: st7567_spi_page1
|
||||||
to: page2
|
to: st7567_spi_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -9,15 +9,15 @@ display:
|
|||||||
col_start: 0
|
col_start: 0
|
||||||
row_start: 0
|
row_start: 0
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: st7735_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: st7735_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: st7735_page1
|
||||||
to: page2
|
to: st7735_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -6,15 +6,15 @@ display:
|
|||||||
reset_pin: ${reset_pin}
|
reset_pin: ${reset_pin}
|
||||||
backlight_pin: ${backlight_pin}
|
backlight_pin: ${backlight_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: st7789v_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: st7789v_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: st7789v_page1
|
||||||
to: page2
|
to: st7789v_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -4,15 +4,15 @@ display:
|
|||||||
height: 128
|
height: 128
|
||||||
width: 64
|
width: 64
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: st7920_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- id: page2
|
- id: st7920_page2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
on_page_change:
|
on_page_change:
|
||||||
from: page1
|
from: st7920_page1
|
||||||
to: page2
|
to: st7920_page2
|
||||||
then:
|
then:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGD("display", "1 -> 2");
|
ESP_LOGD("display", "1 -> 2");
|
||||||
|
@@ -4,7 +4,7 @@ display:
|
|||||||
model: SSD1306_128X64
|
model: SSD1306_128X64
|
||||||
reset_pin: ${disp_reset_pin}
|
reset_pin: ${disp_reset_pin}
|
||||||
pages:
|
pages:
|
||||||
- id: page1
|
- id: tt21100_page1
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
@@ -1,27 +1,27 @@
|
|||||||
# component declaration
|
# component declaration
|
||||||
wk2168_i2c:
|
wk2168_i2c:
|
||||||
- id: bridge_i2c
|
- id: wk2168_i2c_bridge
|
||||||
address: 0x70
|
address: 0x70
|
||||||
uart:
|
uart:
|
||||||
- id: id0
|
- id: wk2168_i2c_uart0
|
||||||
channel: 0
|
channel: 0
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
stop_bits: 1
|
stop_bits: 1
|
||||||
parity: none
|
parity: none
|
||||||
- id: id1
|
- id: wk2168_i2c_uart1
|
||||||
channel: 1
|
channel: 1
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
- id: id2
|
- id: wk2168_i2c_uart2
|
||||||
channel: 2
|
channel: 2
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
- id: id3
|
- id: wk2168_i2c_uart3
|
||||||
channel: 3
|
channel: 3
|
||||||
baud_rate: 9600
|
baud_rate: 9600
|
||||||
|
|
||||||
# Ensures a sensor doesn't break validation
|
# Ensures a sensor doesn't break validation
|
||||||
sensor:
|
sensor:
|
||||||
- platform: a02yyuw
|
- platform: a02yyuw
|
||||||
uart_id: id3
|
uart_id: wk2168_i2c_uart3
|
||||||
id: distance_sensor
|
id: distance_sensor
|
||||||
|
|
||||||
# individual binary_sensor inputs
|
# individual binary_sensor inputs
|
||||||
@@ -29,14 +29,14 @@ binary_sensor:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_0"
|
name: "pin_0"
|
||||||
pin:
|
pin:
|
||||||
wk2168_i2c: bridge_i2c
|
wk2168_i2c: wk2168_i2c_bridge
|
||||||
number: 0
|
number: 0
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_1"
|
name: "pin_1"
|
||||||
pin:
|
pin:
|
||||||
wk2168_i2c: bridge_i2c
|
wk2168_i2c: wk2168_i2c_bridge
|
||||||
number: 1
|
number: 1
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
@@ -47,14 +47,14 @@ switch:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_2"
|
name: "pin_2"
|
||||||
pin:
|
pin:
|
||||||
wk2168_i2c: bridge_i2c
|
wk2168_i2c: wk2168_i2c_bridge
|
||||||
number: 2
|
number: 2
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_3"
|
name: "pin_3"
|
||||||
pin:
|
pin:
|
||||||
wk2168_i2c: bridge_i2c
|
wk2168_i2c: wk2168_i2c_bridge
|
||||||
number: 3
|
number: 3
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
|
@@ -1,28 +1,28 @@
|
|||||||
wk2168_spi:
|
wk2168_spi:
|
||||||
- id: bridge_spi
|
- id: wk2168_spi_bridge
|
||||||
cs_pin: ${cs_pin}
|
cs_pin: ${cs_pin}
|
||||||
crystal: 11059200
|
crystal: 11059200
|
||||||
data_rate: 1MHz
|
data_rate: 1MHz
|
||||||
uart:
|
uart:
|
||||||
- id: id0
|
- id: wk2168_spi_uart0
|
||||||
channel: 0
|
channel: 0
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
stop_bits: 1
|
stop_bits: 1
|
||||||
parity: none
|
parity: none
|
||||||
- id: id1
|
- id: wk2168_spi_uart1
|
||||||
channel: 1
|
channel: 1
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
- id: id2
|
- id: wk2168_spi_uart2
|
||||||
channel: 2
|
channel: 2
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
- id: id3
|
- id: wk2168_spi_uart3
|
||||||
channel: 3
|
channel: 3
|
||||||
baud_rate: 9600
|
baud_rate: 9600
|
||||||
|
|
||||||
# Ensures a sensor doesn't break validation
|
# Ensures a sensor doesn't break validation
|
||||||
sensor:
|
sensor:
|
||||||
- platform: a02yyuw
|
- platform: a02yyuw
|
||||||
uart_id: id3
|
uart_id: wk2168_spi_uart3
|
||||||
id: distance_sensor
|
id: distance_sensor
|
||||||
|
|
||||||
# individual binary_sensor inputs
|
# individual binary_sensor inputs
|
||||||
@@ -30,14 +30,14 @@ binary_sensor:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_0"
|
name: "pin_0"
|
||||||
pin:
|
pin:
|
||||||
wk2168_spi: bridge_spi
|
wk2168_spi: wk2168_spi_bridge
|
||||||
number: 0
|
number: 0
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_1"
|
name: "pin_1"
|
||||||
pin:
|
pin:
|
||||||
wk2168_spi: bridge_spi
|
wk2168_spi: wk2168_spi_bridge
|
||||||
number: 1
|
number: 1
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
@@ -48,14 +48,14 @@ switch:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_2"
|
name: "pin_2"
|
||||||
pin:
|
pin:
|
||||||
wk2168_spi: bridge_spi
|
wk2168_spi: wk2168_spi_bridge
|
||||||
number: 2
|
number: 2
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_3"
|
name: "pin_3"
|
||||||
pin:
|
pin:
|
||||||
wk2168_spi: bridge_spi
|
wk2168_spi: wk2168_spi_bridge
|
||||||
number: 3
|
number: 3
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# component declaration
|
# component declaration
|
||||||
wk2212_i2c:
|
wk2212_i2c:
|
||||||
- id: bridge_i2c
|
- id: wk2212_i2c_bridge
|
||||||
address: 0x70
|
address: 0x70
|
||||||
uart:
|
uart:
|
||||||
- id: uart_i2c_id0
|
- id: uart_i2c_id0
|
||||||
@@ -25,14 +25,14 @@ binary_sensor:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_0"
|
name: "pin_0"
|
||||||
pin:
|
pin:
|
||||||
wk2212_i2c: bridge_i2c
|
wk2212_i2c: wk2212_i2c_bridge
|
||||||
number: 0
|
number: 0
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_1"
|
name: "pin_1"
|
||||||
pin:
|
pin:
|
||||||
wk2212_i2c: bridge_i2c
|
wk2212_i2c: wk2212_i2c_bridge
|
||||||
number: 1
|
number: 1
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
@@ -43,14 +43,14 @@ switch:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_2"
|
name: "pin_2"
|
||||||
pin:
|
pin:
|
||||||
wk2212_i2c: bridge_i2c
|
wk2212_i2c: wk2212_i2c_bridge
|
||||||
number: 2
|
number: 2
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_3"
|
name: "pin_3"
|
||||||
pin:
|
pin:
|
||||||
wk2212_i2c: bridge_i2c
|
wk2212_i2c: wk2212_i2c_bridge
|
||||||
number: 3
|
number: 3
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
|
@@ -1,22 +1,22 @@
|
|||||||
wk2212_spi:
|
wk2212_spi:
|
||||||
- id: bridge_spi
|
- id: wk2212_spi_bridge
|
||||||
cs_pin: ${cs_pin}
|
cs_pin: ${cs_pin}
|
||||||
crystal: 11059200
|
crystal: 11059200
|
||||||
data_rate: 1MHz
|
data_rate: 1MHz
|
||||||
uart:
|
uart:
|
||||||
- id: id0
|
- id: wk2212_spi_uart0
|
||||||
channel: 0
|
channel: 0
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
stop_bits: 1
|
stop_bits: 1
|
||||||
parity: none
|
parity: none
|
||||||
- id: id1
|
- id: wk2212_spi_uart1
|
||||||
channel: 1
|
channel: 1
|
||||||
baud_rate: 9600
|
baud_rate: 9600
|
||||||
|
|
||||||
# Ensures a sensor doesn't break validation
|
# Ensures a sensor doesn't break validation
|
||||||
sensor:
|
sensor:
|
||||||
- platform: a02yyuw
|
- platform: a02yyuw
|
||||||
uart_id: id1
|
uart_id: wk2212_spi_uart1
|
||||||
id: distance_sensor
|
id: distance_sensor
|
||||||
|
|
||||||
# individual binary_sensor inputs
|
# individual binary_sensor inputs
|
||||||
@@ -24,14 +24,14 @@ binary_sensor:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_0"
|
name: "pin_0"
|
||||||
pin:
|
pin:
|
||||||
wk2212_spi: bridge_spi
|
wk2212_spi: wk2212_spi_bridge
|
||||||
number: 0
|
number: 0
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_1"
|
name: "pin_1"
|
||||||
pin:
|
pin:
|
||||||
wk2212_spi: bridge_spi
|
wk2212_spi: wk2212_spi_bridge
|
||||||
number: 1
|
number: 1
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
@@ -42,14 +42,14 @@ switch:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_2"
|
name: "pin_2"
|
||||||
pin:
|
pin:
|
||||||
wk2212_spi: bridge_spi
|
wk2212_spi: wk2212_spi_bridge
|
||||||
number: 2
|
number: 2
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "pin_3"
|
name: "pin_3"
|
||||||
pin:
|
pin:
|
||||||
wk2212_spi: bridge_spi
|
wk2212_spi: wk2212_spi_bridge
|
||||||
number: 3
|
number: 3
|
||||||
mode:
|
mode:
|
||||||
output: true
|
output: true
|
||||||
|
Reference in New Issue
Block a user