[TAS2780] Add TAS2780 audio amplifier (#15708)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
Remco van Essen
2026-09-24 15:45:51 +01:00
committed by GitHub
co-authored by Claude Sonnet 4.6 pre-commit-ci-lite[bot] J. Nick Koston
parent f1f83cda07
commit d2fefe2299
9 changed files with 621 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
audio_dac:
- platform: tas2780
id: tas2780_amp
address: 0x38
i2c_id: i2c_bus
amp_level: 8
power_mode: 2
vol_range_min: 0.3
vol_range_max: 1.0
channel: mono
esphome:
on_boot:
- tas2780.activate:
id: tas2780_amp
- tas2780.activate:
id: tas2780_amp
power_mode: 1
- tas2780.activate:
id: tas2780_amp
power_mode: !lambda "return id(tas2780_amp).volume() > 0.5f ? 3 : 1;"
- tas2780.update_config:
id: tas2780_amp
amp_level: 10
vol_range_min: 0.2
vol_range_max: 0.9
channel: left
- tas2780.deactivate:
id: tas2780_amp
- tas2780.reset:
id: tas2780_amp
@@ -0,0 +1,3 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
tas2780: !include common.yaml
@@ -0,0 +1,3 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
tas2780: !include common.yaml
@@ -0,0 +1,3 @@
packages:
i2c: !include ../../test_build_components/common/i2c/rp2040-ard.yaml
tas2780: !include common.yaml