1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00
Files
esphome/tests/components/wk2132_i2c/common.yaml
2025-05-30 23:37:27 +12:00

27 lines
473 B
YAML

i2c:
id: i2c_bus
scl: ${scl_pin}
sda: ${sda_pin}
scan: true
frequency: 600kHz
wk2132_i2c:
- id: wk2132_i2c_id
address: 0x70
i2c_id: i2c_bus
uart:
- id: wk2132_id_0
channel: 0
baud_rate: 115200
stop_bits: 1
parity: none
- id: wk2132_id_1
channel: 1
baud_rate: 9600
# Ensures a sensor doesn't break validation
sensor:
- platform: a02yyuw
uart_id: wk2132_id_1
id: distance_sensor