Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: lilka
- friendly_name: lilka
- on_boot:
- priority: 600
- then:
- - output.turn_on: display_power
- - delay: 100ms
- esp32:
- board: esp32-s3-devkitc-1
- framework:
- type: arduino
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- ap:
- ssid: "Lilka Fallback Hotspot"
- password: "hnYImYM4O6I0"
- captive_portal:
- web_server:
- port: 80
- api:
- encryption:
- key: "Yw3yq8lxsaze+jdggjAwxKpV4GD6gNZptvw4d6OPfOc="
- logger:
- ota:
- - platform: esphome
- password: "bb198feb99159fdaefc8092f10039acd"
- output:
- - platform: gpio
- pin: 46
- id: display_power
- inverted: false
- substitutions:
- i2s_lrclk: GPIO1 # LRC Pin of the Max98357
- i2s_bclk: GPIO42 # BCLK Pin of the Max98357
- spk: GPIO2 # DIN Pin of the Max98357
- i2s_audio:
- - id: i2s_in
- i2s_lrclk_pin: ${i2s_lrclk} # LRC Pin of the Max98357
- i2s_bclk_pin: ${i2s_bclk} # BCLK Pin of the Max98357
- media_player:
- - platform: i2s_audio
- name: "Lilka Speaker"
- id: media_player_speaker
- i2s_audio_id: i2s_in
- dac_type: external
- i2s_dout_pin: ${spk} # DIN Pin of the MAX98357A Audio Amplifier
- mode: mono
- on_play:
- - logger.log: "Media playing!"
- - media_player.volume_set:
- id: media_player_speaker
- volume: 100%
Advertisement
Add Comment
Please, Sign In to add comment