mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: Kevin Ahrendt <kevin.ahrendt@openhomefoundation.org>
26 lines
504 B
YAML
26 lines
504 B
YAML
substitutions:
|
|
i2s_bclk_pin: GPIO27
|
|
i2s_lrclk_pin: GPIO26
|
|
i2s_mclk_pin: GPIO25
|
|
i2s_dout_pin: GPIO12
|
|
spdif_data_pin: GPIO4
|
|
|
|
packages:
|
|
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
|
|
|
|
i2s_audio:
|
|
- id: i2s_output
|
|
|
|
speaker:
|
|
- platform: i2s_audio
|
|
id: speaker_id
|
|
dac_type: external
|
|
i2s_dout_pin: ${spdif_data_pin}
|
|
spdif_mode: true
|
|
use_apll: true
|
|
timeout: 2s
|
|
sample_rate: 48000
|
|
bits_per_sample: 16bit
|
|
channel: stereo
|
|
i2s_mode: primary
|