MCPcopy Create free account
hub / github.com/PowerBroker2/DFPlayerMini_Fast / DFPlayerMini_Fast

Class DFPlayerMini_Fast

src/DFPlayerMini_Fast.h:127–230  ·  view source on GitHub ↗

/ ! @brief Class for interacting with DFPlayerMini MP3 player */ /

Source from the content-addressed store, hash-verified

125*/
126/**************************************************************************/
127class DFPlayerMini_Fast
128{
129public:
130 Stream* _serial;
131
132 /** Struct to store entire serial datapacket used for MP3 config/control */
133 struct stack {
134 uint8_t start_byte;
135 uint8_t version;
136 uint8_t length;
137 uint8_t commandValue;
138 uint8_t feedbackValue;
139 uint8_t paramMSB;
140 uint8_t paramLSB;
141 uint8_t checksumMSB;
142 uint8_t checksumLSB;
143 uint8_t end_byte;
144 } sendStack, recStack;
145
146 bool _debug;
147
148
149
150
151 bool begin(Stream& stream, bool debug=false, unsigned long threshold=100);
152
153 void playNext();
154 void playPrevious();
155 void play(uint16_t trackNum);
156 void stop();
157 void playFromMP3Folder(uint16_t trackNum);
158 void playAdvertisement(uint16_t trackNum);
159 void stopAdvertisement();
160 void incVolume();
161 void decVolume();
162 void volume(uint8_t volume);
163 void EQSelect(uint8_t setting);
164 void loop(uint16_t trackNum);
165 void playbackSource(uint8_t source);
166 void standbyMode();
167 void normalMode();
168 void reset();
169 void resume();
170 void pause();
171 void playFolder(uint8_t folderNum, uint8_t trackNum);
172 void playLargeFolder(uint8_t folderNum, uint16_t trackNum);
173 void volumeAdjustSet(uint8_t gain);
174 void startRepeatPlay();
175 void stopRepeatPlay();
176 void repeatFolder(uint16_t folder);
177 void randomAll();
178 void startRepeat();
179 void stopRepeat();
180 void startDAC();
181 void stopDAC();
182 void sleep();
183 void wakeUp();
184

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected