This is an espruino module for DFPlayer mini This module uses Software Serial
i tested on ESP8266 NodeMCU.
require the module, and set your tx and rx pins.
var dfplayer = require("DFPlayer");
var mp3 = dfplayer.setup(NodeMCU.D2, NodeMCU.D1); //tx, rx
play a song
mp3.play();
- Play
- Next
- SetEQ
- Reset
- Pause
- Resume
- SetMode
- Standby
- SetGain
- QueryEQ
- Previous
- SetTrack
- SetVolume
- SetSource
- QueryMode
- SetFolder
- RepeatPlay
- QueryVolume
- QueryStatus
- IncreaseVolume
- DecreaseVolume
- QuerySoftwareVersion
- QueryTotalFilesOnUDisk
- QueryTotalFilesOnFlash
- QueryTotalFilesOnTFCard
- QueryCurrentTrackOnUDisk
- QueryCurrentTrackOnFlash
- QueryCurrentTrackOnTFCard
feel free to improve the code