查了数据。是说esp32支持2组i2c总线,可是默认只看到1组总线(21,22),我现在的需求是接2个dht温湿度传感器,应该怎么连接?有大佬知道不?
i2c:
sda: GPIO21
scl: GPIO22
scan: True
sensor:
- platform: internal_temperature
name: "esp32 Temperature"
- platform: uptime
id: uptime_s
update_interval: 5s
- platform: aht10
variant: AHT20
temperature:
name: "Room Temperature"
filters:
- lambda: return x - 1.0;
humidity:
name: "Room Humidity"
filters:
- lambda: return x + 1.0;
update_interval: 60s
|