mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
36 lines
634 B
YAML
36 lines
634 B
YAML
audio_dac:
|
|
- platform: pcm5122
|
|
id: pcm5122_dac
|
|
i2c_id: i2c_bus
|
|
address: 0x4D
|
|
bits_per_sample: 32bit
|
|
analog_gain: -6db
|
|
channel_mix: swapped
|
|
volume_min_db: -60dB
|
|
volume_max_db: -3dB
|
|
enable_pin: GPIO12
|
|
|
|
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
|
|
|
|
switch:
|
|
- platform: pcm5122
|
|
pcm5122: pcm5122_dac
|
|
name: PCM5122 Power Down
|
|
power_mode: powerdown
|