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
db42c8ab
Unverified
Commit
db42c8ab
authored
May 03, 2021
by
Wolle
Committed by
GitHub
May 03, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #156 from CelliesProjects/fix_example
Fix example
parents
d44a6264
e91d190a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
examples/M5Stack.ino
examples/M5Stack.ino
+4
-4
No files found.
examples/M5Stack.ino
View file @
db42c8ab
...
...
@@ -16,9 +16,8 @@
#define I2S_DOUT 2
#define I2S_DIN 34
/* M5Stack WM8978 MCLK gpio number
and frequency
*/
/* M5Stack WM8978 MCLK gpio number */
#define I2S_MCLKPIN 0
#define I2S_MFREQ (24 * 1000 * 1000)
WM8978
dac
;
Audio
audio
;
...
...
@@ -29,12 +28,13 @@ void setup() {
ESP_LOGE
(
TAG
,
"Error setting up dac. System halted"
);
while
(
1
)
delay
(
100
);
}
/* Setup wm8978 MCLK on gpio - for example M5Stack Node needs a 24Mhz clock on gpio 0 */
dac
.
setPinClockFreq
(
I2S_MCLKPIN
,
I2S_MFREQ
);
/* Setup wm8978 I2S interface */
audio
.
setPinout
(
I2S_BCK
,
I2S_WS
,
I2S_DOUT
,
I2S_DIN
);
/* Setup wm8978 MCLK - for example M5Stack Node needs MCLK on GPIO 0 */
audio
.
i2s_mclk_pin_select
(
I2S_MCLKPIN
);
WiFi
.
begin
(
"xxx"
,
"xxx"
);
while
(
!
WiFi
.
isConnected
())
{
delay
(
10
);
...
...
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