Skip to content

Commit 3ba05c5

Browse files
committed
Add comments for ESP32
1 parent 1105bc4 commit 3ba05c5

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

DFR0534.pdf

3.04 KB
Binary file not shown.

examples/playCombined/playCombined.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/*
22
* Example for using the DFR0534 for playing combined audio files like a playlist
3+
*
4+
* This code was made for Arduino Uno/Nano. For ESP32 you have the change the code to use HardwareSerial
5+
* instead for SoftwareSerial (see https://github.com/codingABI/DFR0534?tab=readme-ov-file#hardwareserial-for-esp32)
36
*/
47

58
#include <SoftwareSerial.h>

examples/playFileByName/playFileByName.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/*
22
* Example for using the DFR0534 for playing audio files by file name
3+
*
4+
* This code was made for Arduino Uno/Nano. For ESP32 you have the change the code to use HardwareSerial
5+
* instead for SoftwareSerial (see https://github.com/codingABI/DFR0534?tab=readme-ov-file#hardwareserial-for-esp32)
36
*/
47

58
#include <SoftwareSerial.h>
@@ -19,17 +22,17 @@ void setup() {
1922
// Set volume
2023
g_audio.setVolume(18);
2124

22-
/* The file name/path for the function playFileByName() is the
23-
* full path of the audio file to be played in format which looks like
25+
/* The file name/path for the function playFileByName() is the
26+
* full path of the audio file to be played in format which looks like
2427
* a special unix 8+3 format:
2528
* - Without the dot for the file extension
2629
* - All characters in upper case
2730
* - maximal 8 characters
28-
* - Every file and folder whose name length is shorter then 8 chars
31+
* - Every file and folder whose name length is shorter then 8 chars
2932
* must be filled up to the 8 chars length by space chars
3033
* - must end with WAV or MP3
3134
* - Only WAV and MP3 files are supported
32-
* - Wildcards * (=multiple arbitrary characters) and ? (=one single arbitrary character)
35+
* - Wildcards * (=multiple arbitrary characters) and ? (=one single arbitrary character)
3336
* are allowed and can be used to reduce the filling space chars
3437
*
3538
* Valid examples:

examples/playFileByNumber/playFileByNumber.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/*
22
* Example for using the DFR0534 for playing audio files by file number
3+
*
4+
* This code was made for Arduino Uno/Nano. For ESP32 you have the change the code to use HardwareSerial
5+
* instead for SoftwareSerial (see https://github.com/codingABI/DFR0534?tab=readme-ov-file#hardwareserial-for-esp32)
36
*/
47

58
#include <SoftwareSerial.h>

0 commit comments

Comments
 (0)