[pcm5122] Add PCM5122 audio DAC component (#15709)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: kbx81 <kbx81x@gmail.com>
This commit is contained in:
Remco van Essen
2026-06-09 08:33:15 +02:00
committed by GitHub
parent ddd21ba442
commit cdc63f0fed
12 changed files with 450 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
audio_dac:
- platform: pcm5122
id: pcm5122_dac
i2c_id: i2c_bus
address: 0x4D
bits_per_sample: 32bit
output:
- platform: gpio
id: pcm5122_amp_enable
pin:
pcm5122: pcm5122_dac
number: 3
mode:
output: true
binary_sensor:
- platform: gpio
id: pcm5122_gpio_input
pin:
pcm5122: pcm5122_dac
number: 4
mode:
input: true

View File

@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp32-ard.yaml
<<: !include common.yaml

View File

@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
<<: !include common.yaml

View File

@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
<<: !include common.yaml

View File

@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/rp2040-ard.yaml
<<: !include common.yaml