跳转到内容

MCP47A1 输出

mcp47a1 输出组件允许使用 6 位外部 DAC ,通过 I²C 在任何开发板上获得模拟输出。设备的默认地址为 0x2E ,可配置的备用地址为 0x3E。

# Example configuration entry
# Set a global I²C connection
i2c:
sda: 21
scl: 22
scan: true
# Set the output with default (address: 0x2E / global I²C)
output:
- platform: mcp47a1
id: dac_output
on_...:
then:
- output.set_level:
id: dac_output
level: 100%
  • id (必需, ID): 用于此输出组件的 id。

  • address (可选, int): 手动指定 DAC 的 I²C 地址。 默认为 0x2E。

  • 所有其他选项请参见 输出。