makecode pxt extension for Xuefeng DFPlayer Mini Audio Board
DFPlayer Mini Module:
Xuefeng DFPlayer Mini Audio Board:
input.onButtonPressed(Button.A, function () {
dfplayermini.playLoopAllFiles()
})
input.onButtonPressed(Button.B, function () {
dfplayermini.setEQ(dfplayermini.EQ.Rock)
})
input.onButtonPressed(Button.AB, function () {
dfplayermini.setEQ(dfplayermini.EQ.Jazz)
})
dfplayermini.connect(SerialPin.P0, SerialPin.P1)
basic.forever(function () {
})
Use ||connect||
to connect to Xuefeng DFPlayer Mini Audio Board.
Use ||playLoopAllFiles||
to play loop all files.
Use ||setEQ||
to set EQ for DFPlayer mini.
- for PXT/microbit
MIT