Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
454911fe
Unverified
Commit
454911fe
authored
Feb 08, 2024
by
Wolle
Committed by
GitHub
Feb 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ESP32_A1S.ino
parent
0b689568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
examples/ESP32_A1S/ESP32_A1S.ino
examples/ESP32_A1S/ESP32_A1S.ino
+4
-7
No files found.
examples/ESP32_A1S/ESP32_A1S.ino
View file @
454911fe
...
@@ -19,14 +19,14 @@
...
@@ -19,14 +19,14 @@
#define SPI_SCK 14
#define SPI_SCK 14
// I2S GPIOs, the names refer on AC101, AS1 Audio Kit V2.2 2379
// I2S GPIOs, the names refer on AC101, AS1 Audio Kit V2.2 2379
#define I2S_DSIN
25
#define I2S_DSIN
35 // pin not used
#define I2S_BCLK 27
#define I2S_BCLK 27
#define I2S_LRC 26
#define I2S_LRC 26
#define I2S_MCLK 0
#define I2S_MCLK 0
#define I2S_DOUT
3
5
#define I2S_DOUT
2
5
// I2S GPIOs, the names refer on ES8388, AS1 Audio Kit V2.2 3378
// I2S GPIOs, the names refer on ES8388, AS1 Audio Kit V2.2 3378
//#define I2S_DSIN 35
//#define I2S_DSIN 35
// pin not used
//#define I2S_BCLK 27
//#define I2S_BCLK 27
//#define I2S_LRC 25
//#define I2S_LRC 25
//#define I2S_MCLK 0
//#define I2S_MCLK 0
...
@@ -102,10 +102,7 @@ void setup()
...
@@ -102,10 +102,7 @@ void setup()
pinMode
(
GPIO_PA_EN
,
OUTPUT
);
pinMode
(
GPIO_PA_EN
,
OUTPUT
);
digitalWrite
(
GPIO_PA_EN
,
HIGH
);
digitalWrite
(
GPIO_PA_EN
,
HIGH
);
// set I2S_MasterClock
audio
.
setPinout
(
I2S_BCLK
,
I2S_LRC
,
I2S_DOUT
,
I2S_MCLK
);
audio
.
i2s_mclk_pin_select
(
I2S_MCLK
);
audio
.
setPinout
(
I2S_BCLK
,
I2S_LRC
,
I2S_DSIN
);
audio
.
setVolume
(
10
);
// 0...21
audio
.
setVolume
(
10
);
// 0...21
audio
.
connecttoFS
(
SD
,
"/320k_test.mp3"
);
audio
.
connecttoFS
(
SD
,
"/320k_test.mp3"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment