Skip to content

Commit a725e4d

Browse files
authored
Merge pull request #2 from s-light/main
small tweaks
2 parents 46b99d1 + 8fc1fca commit a725e4d

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

examples/playFileByName/playFileByName.ino

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,33 @@ void setup() {
1919
// Set volume
2020
g_audio.setVolume(18);
2121

22-
/* The file name/path for the function playFileByName() is the full path of the audio file to be played
23-
* in format which looks like a special unix 8+3 format:
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
24+
* a special unix 8+3 format:
2425
* - Without the dot for the file extension
2526
* - All characters in upper case
26-
* - Every file and folder whose length is shorter then 8 chars must be filled up to the 8 chars length by spaces.
27+
* - maximal 8 characters
28+
* - Every file and folder whose name length is shorter then 8 chars
29+
* must be filled up to the 8 chars length by spaces.
30+
* - must end with WAV or MP3
2731
* - Only WAV and MP3 files are supported
28-
* Wildcards * (=multiple arbitrary characters) and ? (=one single arbitrary character) are allowed and can be used to reduce filling spaces.
32+
* - Wildcards
33+
* * (=multiple arbitrary characters) and
34+
* ? (=one single arbitrary character)
35+
* are allowed and can be used to reduce filling spaces.
2936
*
3037
* Valid examples:
31-
* - "/01 WAV" for file 01.wav
32-
* - "/99-AFR~1MP3" for a file /99-Africa.mp3
33-
* - "/99-AFR*MP3" for first file matching /99-Afr*.mp3
34-
* - "/10*" for first audio file matching /10*.*
38+
* - "/01 WAV" for file '/01.wav'
39+
* - "/99-AFR~1MP3" for a file '/99-Africa.mp3'
40+
* - "/SUN*MP3" for first* file matching /sun*.mp3, for example '/sun.mp3'
41+
* - "/99-AFR*MP3" for first file matching '/99-Afr*.mp3'
42+
* - "/10*" for first* audio file matching /10*.*
3543
* - "/10 /20 WAV" for the file /10/20.wav
44+
* - first* in this order for example:
45+
* sun0.mp3 sun.mp3 sun1.mp3
3646
*
37-
* You can get example files from https://github.com/codingABI/DFR0534/tree/main/assets/exampleContent
38-
*
39-
* Valid examples:
40-
* "/01 WAV" for file 01.wav
41-
* "/99-AFR~1MP3" for a file /99-Africa.mp3
42-
* "/99-AFR*MP3" for first file matching /99-Afr*.mp3
43-
* "/10*" for first audio file matching /10*.*
44-
* "/10 /20 WAV" for the file /10/20.wav
47+
* You can get example files from
48+
* https://github.com/codingABI/DFR0534/tree/main/assets/exampleContent
4549
*/
4650

4751
// Play the file "test.wav"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=DFR0534
2-
version=1.0.1
2+
version=1.0.2
33
author=codingABI
44
maintainer=codingABI
55
sentence=Class for controlling a DFR0534 audio module by SoftwareSerial

src/DFR0534.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @author codingABI https://github.com/codingABI/
3939
* @copyright 2-Clause BSD License
4040
* @file DFR0534.cpp
41-
* @version 1.0.1
41+
* @version 1.0.2
4242
*/
4343
#include "DFR0534.h"
4444

src/DFR0534.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* @author codingABI https://github.com/codingABI/
1515
* @copyright 2-Clause BSD License
1616
* @file DFR0534.h
17-
* @version 1.0.1
17+
* @version 1.0.2
1818
*/
1919
#pragma once
2020

2121
/** Library version */
2222
#define DFR0534_VERSION "1.0.1"
2323

24-
#include <arduino.h>
24+
#include <Arduino.h>
2525
#include <Stream.h>
2626

2727
#define STARTINGCODE 0xAA

0 commit comments

Comments
 (0)