1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 10:50:58 +01:00
esphome/tests/components/speaker/test.esp32-c3-ard.yaml
[pʲɵs] 04248b6840
[i2s_audio] Add more options to speakers and microphones (#7306)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-09-11 17:12:20 +12:00

24 lines
422 B
YAML

esphome:
on_boot:
then:
- if:
condition: speaker.is_stopped
then:
- speaker.play: [0, 1, 2, 3]
- if:
condition: speaker.is_playing
then:
- speaker.finish:
- speaker.stop:
i2s_audio:
i2s_lrclk_pin: 6
i2s_bclk_pin: 7
i2s_mclk_pin: 5
speaker:
- platform: i2s_audio
id: speaker_id
dac_type: external
i2s_dout_pin: 3