4 #include <DFPlayerMini.h> 14 static const uint8_t PlaybackStartMs = 120;
17 static const uint8_t Mp3TrackZero = 200;
18 static const uint8_t Mp3TrackTen = 210;
19 static const uint8_t Mp3TrackTwenty = 220;
20 static const uint8_t Mp3TrackThirty = 221;
21 static const uint8_t Mp3TrackFourty = 222;
22 static const uint8_t Mp3TrackFifty = 223;
23 static const uint8_t Mp3TrackSixty = 224;
24 static const uint8_t Mp3TrackSeventy = 225;
25 static const uint8_t Mp3TrackEighty = 226;
26 static const uint8_t Mp3TrackNinety = 227;
27 static const uint8_t Mp3TrackHundred = 228;
28 static const uint8_t Mp3TrackThousand = 229;
29 static const uint8_t Mp3TrackMillion = 230;
30 static const uint8_t Mp3TrackBillion = 231;
31 static const uint8_t Mp3TrackTrillion = 232;
32 static const uint8_t Mp3TrackPoint = 233;
33 static const uint8_t Mp3TrackMinus = 234;
34 static const uint8_t Mp3TrackYear = 235;
35 static const uint8_t Mp3TrackYears = 236;
36 static const uint8_t Mp3TrackMonth = 237;
37 static const uint8_t Mp3TrackMonths = 238;
38 static const uint8_t Mp3TrackWeek = 239;
39 static const uint8_t Mp3TrackWeeks = 240;
40 static const uint8_t Mp3TrackDay = 241;
41 static const uint8_t Mp3TrackDays = 242;
42 static const uint8_t Mp3TrackHour = 243;
43 static const uint8_t Mp3TrackHours = 244;
44 static const uint8_t Mp3TrackMinute = 245;
45 static const uint8_t Mp3TrackMinutes = 246;
46 static const uint8_t Mp3TrackSecond = 247;
47 static const uint8_t Mp3TrackSeconds = 248;
48 static const uint8_t Mp3TrackMillisecond = 249;
49 static const uint8_t Mp3TrackMilliseconds = 250;
50 static const uint8_t Mp3TrackAnd = 251;
81 void begin(
bool bootWait=
true);
123 void startPlayback(uint16_t track);
129 uint8_t popElement();
135 void appendSubThousand(int16_t num);
139 void appendMagnitude(
double* number,
double magnitude, uint8_t magnitudeElement);
142 static const uint8_t SMALL_NUMBERS[];
143 static const uint8_t TENS[];
146 const uint8_t readerBufSize;
149 uint8_t unplayedElements;
151 uint32_t lastPlayStart;
Reader is not playing, but is waiting for an audio file to play.
Play track arg from (SD card)
Reader is playing an audio file.
void readNumber(double number, uint8_t dp=0)
DFPReader(Stream &serial, DFPlayerMini::Cmd playCmd=DFPlayerMini::PlayTf, uint8_t busyPin=0, uint8_t readerBufferSize=30)
bool appendElement(uint8_t value)
void begin(bool bootWait=true)