rwpalmer / dfplay Goto Github PK
View Code? Open in Web Editor NEWEnhanced Library for DFPlayer / FN-M16P. Runs as a state-machine. Fully built, partially tested, but shelved ... at least for now.
License: GNU General Public License v3.0
Enhanced Library for DFPlayer / FN-M16P. Runs as a state-machine. Fully built, partially tested, but shelved ... at least for now.
License: GNU General Public License v3.0
I try to use the library in a setup with DFPlayer module, ESP8266 (or ESP32) controlled by an app. However, one feature is really missing: go to previous track.
Possible solution: add
this->cState.changePending = true;
So,
...
if ( !this->dState.repeat) {
this->dState.playState = IDLE; // no repeat, so signal a hard stop
// DFPlayer requires extra time to process when stopping after the last track in a folder or on media
this->cState.noSubmitsTil = millis() + 100; // see note 3 at the bottom of this file for more detail
this->cState.changePending = true;
}
...
In order to make an app controlling an MP3 player, it is basic functionality to see which track is playing. But trackCount is private.
Can you add something like
uint32_t getTrackCount()
{
return cState.trackCount;
}
Hi I was wondering if you tried it also with the MP3-TF-16P
mine has the processors:
MH-ET Live MH 2024K-24SS n190812
8002D XJS-3W
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.