Skip to content

makecode pxt extension for Xuefeng DFPlayer Mini Audio Board

License

Notifications You must be signed in to change notification settings

51bit/dfplayermini

Repository files navigation

DFPlayer Mini driver

makecode pxt extension for Xuefeng DFPlayer Mini Audio Board

DFPlayer Mini Module:

Alt text

Xuefeng DFPlayer Mini Audio Board:

Alt text

Alt text

Basic Usage

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.

Demo

setup DFPlayer Mini

micro:bit + DFPlayer audio board

Alt text

makecode code

Alt text

Supported targets

  • for PXT/microbit

License

MIT

About

makecode pxt extension for Xuefeng DFPlayer Mini Audio Board

Resources

License

Stars

Watchers

Forks

Packages

No packages published