• 大小: 71.79MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-01-24
  • 语言: 其他
  • 标签: stm32  WM8978  FATFS  

资源简介

基于STM32的音乐播放器设备 器件: ①STM32F407主控板; ②1.44st7735全彩显示屏,内含资料; ③音频解码模块--WM8978,内含资料; ④SD卡,存放音频文件; ⑤喇叭,播放音频文件; ⑥按键,音量加减,上一首,下一首。 功能: ①把音频文件加入SD卡,不管里面放的是图片还是文本啥的,设备会自动识别索引; ②实现上一首,下一首,音乐清晰播放; ③实现音量加减; ④实现显示歌曲名字,歌手名字; ⑤实现总曲目数,当前播放的曲目数; ⑥实现歌曲播放进度,是以进度条方式显示,不是时间显示哈。

资源截图

代码片段和文件信息

#include 
#include 
#include 
#include 
#include 
/* 
程序默认IO连接方式:
sbit LCD_CS     =P0^0;     //片选
sbit LCD_AO     =P0^2;   //数据/命令切换
sbit LCD_SDA    =P1^5;   //数据
sbit LCD_SCK    =P1^7;   //时钟
sbit LCD_REST   =P0^1;   //复位  
*/ 
void xianshi()//显示信息
{   
BACK_COLOR=WHITE;
POINT_COLOR=RED;
showhanzi(1000);  //晶
showhanzi(4501);  //耀
    LCD_ShowString(1030“1.44 inch TFT 128*128“);
}
void showimage() //显示40*40图片
{
   int ijk;
xianshi(); //显示信息
for(k=2;k<4;k++)
{
    for(j=0;j<3;j++)
{
Address_set(40*j40*k40*j+3940*k+39); //坐标设置
    for(i=0;i<1600;i++)
 {
    LCD_WR_DATA8(image[i*2+1]);  //发送颜色数据
 LCD_WR_DATA8(image[i*2]);
 }
 }
}

}
main()

Lcd_Init();   //tft初始化
LCD_Clear(WHITE); //清屏
BACK_COLOR=BLACK;;POINT_COLOR=WHITE; 
    showimage(); //显示40*40图片

while(1)
{
 
// Lcd_Init();   //tft初始化
// LCD_Clear(WHITE); //清屏
// BACK_COLOR=BLACK;;POINT_COLOR=WHITE; 
 //  showimage(); //显示40*40图片
// delayms(2000);
    }


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        401  2017-03-19 12:42  音乐播放器设计源码\keilkill.bat

     文件     940127  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h

     文件       2235  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h

     文件      25819  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f401xx.s

     文件      29696  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f40xx.s

     文件      29607  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f40_41xxx.s

     文件      19189  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f410xx.s

     文件      26519  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f411xe.s

     文件      21484  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f412xg.s

     文件      23401  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f413_423xx.s

     文件      31056  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f427x.s

     文件      30981  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f427_437xx.s

     文件      31136  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f429_439xx.s

     文件      22148  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f446xx.s

     文件      30929  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f469_479xx.s

     文件        135  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\说明.txt

     文件      61020  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c

     文件        141  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\说明.txt

     文件       7253  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\arm_common_tables.h

     文件       3942  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\arm_const_structs.h

     文件     252177  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\arm_math.h

     文件      36181  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cm0.h

     文件      43812  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cm0plus.h

     文件     103865  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cm3.h

     文件     114403  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cm4.h

     文件     138654  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cm7.h

     文件      18323  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cmFunc.h

     文件      27908  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cmInstr.h

     文件      22947  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_cmSimd.h

     文件      44330  2017-03-19 12:42  音乐播放器设计源码\Libraries\CMSIS\Include\core_sc000.h

............此处省略496个文件信息

评论

共有 条评论