STM32串口抑制DFPlayer_Mini播放模块,已经写成法度圭表标准,能够直接挪用。
DFPlayer_Mini播放很不错,已经深入钻研,自带MP3解码以及功放,接上扬声器就可使用。
已经测试如下召唤:Uart_DFPlayer(0x01,0x00);//下一曲,TF卡根目录中0001.mp3至9999.mp3文件Uart_DFPlayer(0x02,0x00);//上一曲Uart_DFPlayer(0x03,0x01);//指定曲目,TF卡根目录中0001.mp3至2999.mp3文件,参数2是文件名字Uart_DFPlayer(0x04,0x00);//音量+Uart_DFPlayer(0x05,0x00);//音量-Uart_DFPlayer(0x06,0x1E);//指定音量,参数2是音量大小,1-30Uart_DFPlayer(0x07,0x00);//指定EQ,参数2是0/1/2/3/4/5,对于应Normal/Pop/Rock/Jazz/Classic/BassUart_DFPlayer(0x08,0x01);//单曲轮回指定曲目播放,TF卡根目录中0001.mp3至2999.mp3文件,参数2是文件名字Uart_DFPlayer(0x09,0x02);//指定播放配置配备枚举,参数2是1/2/3/4/5,对于应U盘/SD/AUX/SLEEP/FLASHUart_DFPlayer(0x0A,0x00);//进入休眠——低功耗Uart_DFPlayer(0x0C,0x00);//模块复位Uart_DFPlayer(0x0D,0x00);//播放Uart_DFPlayer(0x0E,0x00);//停息Uart_DFPlayer(0x12,0x01);//指定MP3文件夹曲目,参数2是文件名字Uart_DFPlayer(0x13,0x00);//插播广告,音乐文件需要放在/ADVERT/0001.mp3,参数2是文件名字Uart_DFPlayer(0x16,0x00);//停止播放
1