Advertisement
Guest User

ESP32 Audio Kit (Ai Thinker ESP32-A1S) - ESPHome I2S Media Player

a guest
Jun 30th, 2022
1,525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.34 KB | None | 0 0
  1. esphome:
  2.   name: esp32-audio-kit
  3.  
  4. esp32:
  5.   board: esp-wrover-kit
  6.   framework:
  7.     type: arduino
  8.  
  9. logger:
  10. api:
  11.   password: "api-password-here"
  12.  
  13. ota:
  14.   password: "ota-password-here"
  15.  
  16. wifi:
  17.   ssid: "your-ssid-here"
  18.   password: "your-ssid-password-here"
  19.  
  20.   ap:
  21.     ssid: "esp32-audio-kit Fallback Hotspot"
  22.     password: "fallback-hotspot-password-here"
  23.  
  24. captive_portal:
  25. i2c:
  26.   sda: GPIO33
  27.   scl: GPIO32
  28.  
  29. external_components:
  30.   - source: github://pr#3552
  31.     components: [es8388]
  32.     refresh: 0s
  33.  
  34. es8388:
  35. media_player:
  36.   - platform: i2s_audio
  37.     name: "ESP32 Audio Kit"
  38.     dac_type: external
  39.     i2s_lrclk_pin: GPIO25
  40.     i2s_dout_pin: GPIO26
  41.     i2s_bclk_pin: GPIO27
  42.     mode: stereo
  43.     mute_pin:
  44.       number: GPIO21
  45.       inverted: true
  46.  
  47. switch:
  48.   - platform: gpio
  49.     pin: GPIO21
  50.     name: "AMP Switch"
  51.     restore_mode: ALWAYS_ON
  52.  
  53. binary_sensor:
  54.   - platform: gpio
  55.     pin:
  56.       number: GPIO39
  57.       inverted: true
  58.       mode:
  59.         input: true
  60.     name: "Jack Status"
  61.  
  62. light:
  63.   - platform: binary
  64.     name: "Test LED 1"
  65.     output: light_output_1
  66.   - platform: binary
  67.     name: "Test LED 2"
  68.     output: light_output_2
  69.  
  70. output:
  71.   - id: light_output_1
  72.     platform: gpio
  73.     pin: GPIO22
  74.     inverted: true
  75.   - id: light_output_2
  76.     platform: gpio
  77.     pin: GPIO19
  78.     inverted: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement