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
2191b6c6
Unverified
Commit
2191b6c6
authored
Oct 08, 2022
by
Wolle
Committed by
GitHub
Oct 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
not working with Arduino Version 2.0.1 ... 2.0.4 V2.0.5 is okay
parent
bbef8498
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
examples/Internal DAC/internalDAC.ino
examples/Internal DAC/internalDAC.ino
+49
-0
No files found.
examples/Internal DAC/internalDAC.ino
0 → 100644
View file @
2191b6c6
//**********************************************************************************************************
//* audioI2S-- I2S audiodecoder for ESP32, internal DAC example *
//**********************************************************************************************************
//
// Sep.09/2022
//
// THE SOFTWARE IS PROVIDED "AS IS" FOR PRIVATE USE ONLY, IT IS NOT FOR COMMERCIAL USE IN WHOLE OR PART OR CONCEPT.
// FOR PERSONAL USE IT IS SUPPLIED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR
// OR COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
//
#include "Arduino.h"
#include "WiFiMulti.h"
#include "Audio.h"
// Digital I/O used
#define I2S_DOUT 26
#define I2S_BCLK 27
#define I2S_LRC 25
Audio
audio
(
true
,
I2S_DAC_CHANNEL_BOTH_EN
);
WiFiMulti
wifiMulti
;
String
ssid
=
"xxxxx"
;
String
password
=
"xxxxx"
;
void
setup
()
{
Serial
.
begin
(
115200
);
WiFi
.
mode
(
WIFI_STA
);
wifiMulti
.
addAP
(
ssid
.
c_str
(),
password
.
c_str
());
wifiMulti
.
run
();
if
(
WiFi
.
status
()
!=
WL_CONNECTED
){
WiFi
.
disconnect
(
true
);
wifiMulti
.
run
();
}
audio
.
setVolume
(
12
);
// 0...21
audio
.
connecttohost
(
"http://mp3.ffh.de/radioffh/hqlivestream.mp3"
);
// 128k mp3
}
void
loop
()
{
audio
.
loop
();
}
void
audio_info
(
const
char
*
info
){
Serial
.
print
(
"info "
);
Serial
.
println
(
info
);
}
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