Code Monkey home page Code Monkey logo

dfplay's People

Contributors

federicobusero avatar rwpalmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dfplay's Issues

Feature request: prev

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.

Bug: Skip after last track doesn't stop the player

  • When the skip command is given
  • Rule B1 is being executed
  • If skip during the last song
  • and repeat is false
  • the desired state is IDLE, with noSubmitsTil...
    But, the player doesn't stop, there is no stop command going to the player.

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;
        }

...

Feature request: add getTrackCount

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;
        }

MP3-TF-16P

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.