175
2631
8829
元老级技术达人
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
使用道具 举报
1
75
872
高级会员
201457751 发表于 2025-4-23 20:05 I2C总线设置下面,设置个id,应该就行,另外AHT10不支持设置多个地址位,所以不能在一条总线并联多个AHT10 ...
bugensui 发表于 2025-4-23 22:12 你的意思是,随便设置2个引脚给第2个设备用是吧
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-6-16 15:55 , Processed in 1.194321 second(s), 22 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.