mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
[es7243e] Add support for ES7243E audio ADC (#8098)
This commit is contained in:
14
tests/components/es7243e/common.yaml
Normal file
14
tests/components/es7243e/common.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- audio_adc.set_mic_gain: 0db
|
||||
- audio_adc.set_mic_gain: !lambda 'return 4;'
|
||||
|
||||
i2c:
|
||||
- id: i2c_es7243e
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
audio_adc:
|
||||
- platform: es7243e
|
||||
id: es7243e_adc
|
5
tests/components/es7243e/test.esp32-ard.yaml
Normal file
5
tests/components/es7243e/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7243e/test.esp32-c3-ard.yaml
Normal file
5
tests/components/es7243e/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7243e/test.esp32-c3-idf.yaml
Normal file
5
tests/components/es7243e/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7243e/test.esp32-idf.yaml
Normal file
5
tests/components/es7243e/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user