STM32串口控制DFPlayer_Mini播放模块

上传者: hwzaw | 上传时间: 2019-12-21 19:55:46 | 文件大小: 266KB | 文件类型: rar
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-30 Uart_DFPlayer(0x07 , 0x00) ;//指定EQ,参数2是0/1/2/3/4/5,对应Normal/Pop/Rock/Jazz/Classic/Bass Uart_DFPlayer(0x08 , 0x01) ;//单曲循环指定曲目播放,TF卡根目录中 0001.mp3 至 2999.mp3 文件,参数2是文件名字 Uart_DFPlayer(0x09 , 0x02) ;//指定播放设备,参数2是1/2/3/4/5,对应U盘/SD/AUX/SLEEP/FLASH Uart_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) ;//停止播放

文件下载

资源详情

[{"title":"( 73 个子文件 266KB ) STM32串口控制DFPlayer_Mini播放模块","children":[{"title":"Template.uvguix.HSW <span style='color:#111;'> 138.97KB </span>","children":null,"spread":false},{"title":"JLinkSettings.ini <span style='color:#111;'> 755B </span>","children":null,"spread":false},{"title":"keilkilll.bat <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":"Template.uvoptx <span style='color:#111;'> 14.03KB </span>","children":null,"spread":false},{"title":"Template.uvguix.Administrator <span style='color:#111;'> 70.23KB </span>","children":null,"spread":false},{"title":"Public","children":[{"title":"system.h <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"SysTick.c <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"usart.c <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"usart.h <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"SysTick.h <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"system.c <span style='color:#111;'> 29B </span>","children":null,"spread":false}],"spread":true},{"title":"User","children":[{"title":"stm32f10x.h <span style='color:#111;'> 619.08KB </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.c <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"stm32f10x_conf.h <span style='color:#111;'> 3.18KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"APP","children":[{"title":"DFPlayer","children":[{"title":"DFPlayer.h <span style='color:#111;'> 123B </span>","children":null,"spread":false},{"title":"DFPlayer.c <span style='color:#111;'> 754B </span>","children":null,"spread":false}],"spread":true},{"title":"led","children":[{"title":"led.h <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"led.c <span style='color:#111;'> 763B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Template.uvprojx <span style='color:#111;'> 18.47KB </span>","children":null,"spread":false},{"title":"Libraries","children":[{"title":"CMSIS","children":[{"title":"system_stm32f10x.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"core_cm3.c <span style='color:#111;'> 16.87KB </span>","children":null,"spread":false},{"title":"core_cm3.h <span style='color:#111;'> 83.71KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd.s <span style='color:#111;'> 15.14KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.c <span style='color:#111;'> 35.70KB </span>","children":null,"spread":false}],"spread":true},{"title":"STM32F10x_StdPeriph_Driver","children":[{"title":"inc","children":[{"title":"stm32f10x_spi.h <span style='color:#111;'> 17.31KB </span>","children":null,"spread":false},{"title":"stm32f10x_crc.h <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"stm32f10x_tim.h <span style='color:#111;'> 51.20KB </span>","children":null,"spread":false},{"title":"stm32f10x_usart.h <span style='color:#111;'> 16.16KB </span>","children":null,"spread":false},{"title":"stm32f10x_dma.h <span style='color:#111;'> 20.27KB </span>","children":null,"spread":false},{"title":"stm32f10x_fsmc.h <span style='color:#111;'> 26.38KB </span>","children":null,"spread":false},{"title":"stm32f10x_i2c.h <span style='color:#111;'> 29.33KB </span>","children":null,"spread":false},{"title":"stm32f10x_dac.h <span style='color:#111;'> 14.88KB </span>","children":null,"spread":false},{"title":"stm32f10x_iwdg.h <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"misc.h <span style='color:#111;'> 8.77KB </span>","children":null,"spread":false},{"title":"stm32f10x_bkp.h <span style='color:#111;'> 7.38KB </span>","children":null,"spread":false},{"title":"stm32f10x_pwr.h <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"stm32f10x_dbgmcu.h <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"stm32f10x_exti.h <span style='color:#111;'> 6.66KB </span>","children":null,"spread":false},{"title":"stm32f10x_can.h <span style='color:#111;'> 26.91KB </span>","children":null,"spread":false},{"title":"stm32f10x_adc.h <span style='color:#111;'> 21.18KB </span>","children":null,"spread":false},{"title":"stm32f10x_cec.h <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"stm32f10x_rcc.h <span style='color:#111;'> 29.74KB </span>","children":null,"spread":false},{"title":"stm32f10x_rtc.h <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"stm32f10x_flash.h <span style='color:#111;'> 24.85KB </span>","children":null,"spread":false},{"title":"stm32f10x_sdio.h <span style='color:#111;'> 21.35KB </span>","children":null,"spread":false},{"title":"stm32f10x_wwdg.h <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.h <span style='color:#111;'> 19.70KB </span>","children":null,"spread":false}],"spread":false},{"title":"src","children":[{"title":"stm32f10x_adc.c <span style='color:#111;'> 46.09KB </span>","children":null,"spread":false},{"title":"stm32f10x_fsmc.c <span style='color:#111;'> 34.65KB </span>","children":null,"spread":false},{"title":"misc.c <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"stm32f10x_flash.c <span style='color:#111;'> 61.08KB </span>","children":null,"spread":false},{"title":"stm32f10x_rcc.c <span style='color:#111;'> 50.07KB </span>","children":null,"spread":false},{"title":"stm32f10x_wwdg.c <span style='color:#111;'> 5.60KB </span>","children":null,"spread":false},{"title":"stm32f10x_tim.c <span style='color:#111;'> 106.60KB </span>","children":null,"spread":false},{"title":"stm32f10x_iwdg.c <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.c <span style='color:#111;'> 22.68KB </span>","children":null,"spread":false},{"title":"stm32f10x_dbgmcu.c <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"stm32f10x_pwr.c <span style='color:#111;'> 8.55KB </span>","children":null,"spread":false},{"title":"stm32f10x_crc.c <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"stm32f10x_dac.c <span style='color:#111;'> 18.64KB </span>","children":null,"spread":false},{"title":"stm32f10x_sdio.c <span style='color:#111;'> 28.25KB </span>","children":null,"spread":false},{"title":"stm32f10x_can.c <span style='color:#111;'> 44.05KB </span>","children":null,"spread":false},{"title":"stm32f10x_bkp.c <span style='color:#111;'> 8.26KB </span>","children":null,"spread":false},{"title":"stm32f10x_cec.c <span style='color:#111;'> 11.38KB </span>","children":null,"spread":false},{"title":"stm32f10x_rtc.c <span style='color:#111;'> 8.40KB </span>","children":null,"spread":false},{"title":"stm32f10x_usart.c <span style='color:#111;'> 37.41KB </span>","children":null,"spread":false},{"title":"stm32f10x_i2c.c <span style='color:#111;'> 44.71KB </span>","children":null,"spread":false},{"title":"stm32f10x_spi.c <span style='color:#111;'> 29.52KB </span>","children":null,"spread":false},{"title":"stm32f10x_exti.c <span style='color:#111;'> 6.80KB </span>","children":null,"spread":false},{"title":"stm32f10x_dma.c <span style='color:#111;'> 28.91KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"Obj","children":[{"title":"Objects","children":null,"spread":false},{"title":"Listings","children":null,"spread":false},{"title":"Template.hex <span style='color:#111;'> 7.47KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明