『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1176|回复: 0

[技术探讨] ads1115 接8266的代码

[复制链接]

5

主题

153

帖子

1301

积分

金牌会员

Rank: 6Rank: 6

积分
1301
金钱
1148
HASS币
0
发表于 2024-1-29 14:24:36 | 显示全部楼层 |阅读模式
求教 代码按官网写出错求教 LA0L4]MO7{{EMDEIXY0S@GN.png
https://esphome.io/components/sensor/ads1115.html


The ads1115 sensor allows you to use your ADS1115 sigma-delta ADC sensors (datasheet, Adafruit_ADS1115) or your ADS1015 sigma-delta ADC sensors (datasheet, Adafruit_ADS1015) with ESPHome. First, setup an ADS1115 Hub for your ADS1115 sensor and then use this sensor platform to create individual sensors that will report the voltage to Home Assistant.
ads1115:  - address: 0x48sensor:  - platform: ads1115    multiplexer: 'A0_GND'    gain: 6.144    name: "ADS1115 Channel A0-GND"



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 22:55 , Processed in 0.177071 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表