mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 13:43:00 +00:00
[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:
24
tests/components/pcm5122/common.yaml
Normal file
24
tests/components/pcm5122/common.yaml
Normal 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
|
||||
4
tests/components/pcm5122/test.esp32-ard.yaml
Normal file
4
tests/components/pcm5122/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp32-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
4
tests/components/pcm5122/test.esp32-idf.yaml
Normal file
4
tests/components/pcm5122/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
4
tests/components/pcm5122/test.esp8266-ard.yaml
Normal file
4
tests/components/pcm5122/test.esp8266-ard.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
4
tests/components/pcm5122/test.rp2040-ard.yaml
Normal file
4
tests/components/pcm5122/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/rp2040-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
Reference in New Issue
Block a user