Skip to content

Commit 601efed

Browse files
[I2S][SR] Add new I2S library and Sound Recognition support (espressif#8714)
* [I2S][SR] Add new I2S library and Sound Recognition support * periman + TDM and PDM support * separated init function + default values for pins * fix SR example * fix init functions * remove old I2S from CmakeList * Add ESP_I2S and ESP_SR to Cmakelist includedirs * TDM slot_mask fix * Peripheral manager pin check fix * Compile ESP_SR Arduino code only if ESP-SR is available as component * Guard I2S modes, depending on what is supported by the chip * add check if i2s is supported * Remove old I2S Example --------- Co-authored-by: Jan Procházka <[email protected]>
1 parent 4114c66 commit 601efed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1924
-1893
lines changed

.github/workflows/push.yml

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
8787
runs-on: ubuntu-20.04
8888
strategy:
89+
fail-fast: false
8990
matrix:
9091
# The version names here correspond to the versions of espressif/idf Docker image.
9192
# See https://hub.docker.com/r/espressif/idf/tags and

CMakeLists.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ set(LIBRARY_SRCS
8282
libraries/BluetoothSerial/src/BTScanResultsSet.cpp
8383
libraries/DNSServer/src/DNSServer.cpp
8484
libraries/EEPROM/src/EEPROM.cpp
85+
libraries/ESP_I2S/src/ESP_I2S.cpp
86+
libraries/ESP_SR/src/ESP_SR.cpp
87+
libraries/ESP_SR/src/esp32-hal-sr.c
8588
libraries/ESPmDNS/src/ESPmDNS.cpp
8689
libraries/Ethernet/src/ETH.cpp
8790
libraries/FFat/src/FFat.cpp
@@ -91,7 +94,6 @@ set(LIBRARY_SRCS
9194
libraries/HTTPUpdate/src/HTTPUpdate.cpp
9295
libraries/LittleFS/src/LittleFS.cpp
9396
libraries/Insights/src/Insights.cpp
94-
libraries/I2S/src/I2S.cpp
9597
libraries/NetBIOS/src/NetBIOS.cpp
9698
libraries/Preferences/src/Preferences.cpp
9799
libraries/RainMaker/src/RMaker.cpp
@@ -179,6 +181,8 @@ set(includedirs
179181
libraries/BluetoothSerial/src
180182
libraries/DNSServer/src
181183
libraries/EEPROM/src
184+
libraries/ESP_I2S/src
185+
libraries/ESP_SR/src
182186
libraries/ESP32/src
183187
libraries/ESPmDNS/src
184188
libraries/Ethernet/src
@@ -188,7 +192,6 @@ set(includedirs
188192
libraries/HTTPUpdate/src
189193
libraries/LittleFS/src
190194
libraries/Insights/src
191-
libraries/I2S/src
192195
libraries/NetBIOS/src
193196
libraries/Preferences/src
194197
libraries/RainMaker/src

libraries/ESP32/examples/I2S/HiFreq_ADC/.skip.esp32s3

Whitespace-only changes.

libraries/ESP32/examples/I2S/HiFreq_ADC/HiFreq_ADC.ino

-136
This file was deleted.

libraries/ESP_I2S/keywords.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#######################################
2+
# Syntax Coloring Map For ESP_I2S
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
ESP_I2S KEYWORD1
10+
11+
#######################################
12+
# Methods and Functions (KEYWORD2)
13+
#######################################
14+
15+
onEvent KEYWORD2
16+
17+
#######################################
18+
# Constants (LITERAL1)
19+
#######################################
20+
21+
SR_EVENT_WAKEWORD LITERAL1

libraries/ESP_I2S/library.properties

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=ESP_I2S
2+
version=1.0.0
3+
author=me-no-dev
4+
maintainer=me-no-dev
5+
sentence=Library for ESP I2S communication
6+
paragraph=Supports ESP32 Arduino platforms.
7+
category=Sound
8+
url=https://github.com/espressif/arduino-esp32/
9+
architectures=esp32

0 commit comments

Comments
 (0)