TLC59208F
组件/Hub
Section titled “组件/Hub”TLC59208F 组件代表 ESPHome 中的德州仪器 TLC59208F 8 位 PWM 驱动 (数据手册、 硬件示例)。它 使用 I²C 总线 进行通信。
要使用此组件的通道,你首先需要设置
全局 tlc59208f 芯片并指定其地址和 id,然后定义
单独的输出通道。
# Minimalistic configuration entry, single chip, single outputtlc59208f: address: 0x10 id: tlc59208f_1
# Individual outputsoutput: - platform: tlc59208f tlc59208f_id: 'tlc59208f_1' channel: 0-
address (可选, int): 驱动的 I²C 地址。 默认为
0x20。 -
id (可选, ID): 用于 此 tlc59208f 组件的 id。如果你有多个 TLC59208F 同时连接,请使用此选项
TLC59208F 输出
Section titled “TLC59208F 输出”TLC59208F 输出组件将全局 TLC59208F 芯片 的 TLC59208F PWM 通道作为浮点 输出暴露。

# Complete example configuration entry for 3 drivers and 4 outputs# Maximum 64 drivers with 8 outputs eachtlc59208f: - address: 0x20 id: tlc59208f_1 - address: 0x22 id: tlc59208f_2 - address: 0x24 id: tlc59208f_3
# Individual outputsoutput: - platform: tlc59208f id: 'tlc59208f_1_ch0' channel: 0 tlc59208f_id: 'tlc59208f_1' - platform: tlc59208f id: 'tlc59208f_1_ch4' channel: 4 tlc59208f_id: 'tlc59208f_1' - platform: tlc59208f id: 'tlc59208f_2_ch2' channel: 2 tlc59208f_id: 'tlc59208f_2' - platform: tlc59208f id: 'tlc59208f_3_ch7' channel: 7 tlc59208f_id: 'tlc59208f_3'
# Sample use as a RGB lightlight: - platform: rgb name: "Sample RGB light" red: tlc59208f_1_ch0 green: tlc59208f_1_ch4 blue: tlc59208f_2_ch7-
id (必需, ID): 用于此输出组件的 id。
-
channel (必需, int): 选择此输出组件的 TLC59208F 通道。 值必须在 0 到 7 之间。
-
tlc59208f_id (可选, ID): 手动指定 TLC59208F 芯片 的 ID。 如果你有多个 TLC59208F 并希望同时使用,请使用此选项。
-
所有其他选项请参见 输出。