资源简介

毕设-基于stm32的多功能GUI设计,功能包括:MP3/WMA/WAV/MIDI音频文件播放器、JPEG/JPG/BMP图片浏览、闹钟、万年历、电子书、温度计、计算器、功率放大等。

资源截图

代码片段和文件信息

#include “App_Alarm.h“

ALARM_T peAlarm_Info[5]; 
u8 peAlarm_PlaySta;

FIL* peAlarm_Mp3;
u16 peAlarm_Br;
u8 peAlarm_RespeAlarm_Rval;   
u8 *peAlarm_Databuf;

u8 peAlarm_Menu=FALSE;
u8 peAlarm_Going=PE_ALARM_GOING_NULL;

void App_Alarm(void)
{
peAlarm_Menu=TRUE;
APP_ALARM_LOOP:
peFatfs_GetAlarmINI(“0:/PEOS/CLOCK/1.txt“&peAlarm_Info[0]);
peFatfs_GetAlarmINI(“0:/PEOS/CLOCK/2.txt“&peAlarm_Info[1]);
peFatfs_GetAlarmINI(“0:/PEOS/CLOCK/3.txt“&peAlarm_Info[2]);
peFatfs_GetAlarmINI(“0:/PEOS/CLOCK/4.txt“&peAlarm_Info[3]);
peFatfs_GetAlarmINI(“0:/PEOS/CLOCK/5.txt“&peAlarm_Info[4]);
peAlarm_TimerEnable();
peAlarm_PlaySta=PE_ALARM_STOP;
peGUI_Alarm_Init();
while(1)
{
peLock_KeyCan();
if(peTouch_AdToScreen())
{
peDelay_MS(100);
if(peTouch_PtInRect(00240140))
{
peAlarm_Menu=FALSE;
VS_Reset_DecodeTime();//复位解码时间
vsset.mvol=peMp3_Vol; //默认设置音量为220.
VS_Restart_Play();   //重启播放 
VS_Set_All();         //设置音量等信息 
VS_SPI_SpeedHigh(); //高速 
f_lseek(peFmp30);
peAlarm_TimerEnable();
return;
}
else if(peTouch_PtInRect(014019832))
{
peGUI_Alarm_OnA1BtnBar();
App_Alarm_Set1();
pengLcd_Clear(pengWHITE);
goto APP_ALARM_LOOP;
}
else if(peTouch_PtInRect(017219832))
{
peGUI_Alarm_OnA2BtnBar();
App_Alarm_Set2();
pengLcd_Clear(pengWHITE);
goto APP_ALARM_LOOP;
}
else if(peTouch_PtInRect(020419832))
{
peGUI_Alarm_OnA3BtnBar();
App_Alarm_Set3();
pengLcd_Clear(pengWHITE);
goto APP_ALARM_LOOP;
}
else if(peTouch_PtInRect(023619832))
{
peGUI_Alarm_OnA4BtnBar();
App_Alarm_Set4();
pengLcd_Clear(pengWHITE);
goto APP_ALARM_LOOP;
}
else if(peTouch_PtInRect(026819832))
{
peGUI_Alarm_OnA5BtnBar();
App_Alarm_Set5();
pengLcd_Clear(pengWHITE);
goto APP_ALARM_LOOP;
}
/////////////////////
else if(peTouch_PtInRect(1901414030))
{
if(peAlarm_Info[0].enable==1)
{
peAlarm_Info[0].enable=0;peGUI_Alarm_A1Btn(PEGUI_BTN_OFF);
}
else
{
peAlarm_Info[0].enable=1;peGUI_Alarm_A1Btn(PEGUI_BTN_ON);
}
peFatfs_MakeAlarmINI(“0:/PEOS/CLOCK/1.txt“&peAlarm_Info[0]);
}
else if(peTouch_PtInRect(1901734030))
{
if(peAlarm_Info[1].enable==1)
{
peAlarm_Info[1].enable=0;peGUI_Alarm_A2Btn(PEGUI_BTN_OFF);
}
else
{
peAlarm_Info[1].enable=1;peGUI_Alarm_A2Btn(PEGUI_BTN_ON);
}
peFatfs_MakeAlarmINI(“0:/PEOS/CLOCK/2.txt“&peAlarm_Info[1]);
}
else if(peTouch_PtInRect(1902054030))
{
if(peAlarm_Info[2].enable==1)
{
peAlarm_Info[2].enable=0;peGUI_Alarm_A3Btn(PEGUI_BTN_OFF);
}
else
{
peAlarm_Info[2].enable=1;peGUI_Alarm_A3Btn(PEGUI_BTN_ON);
}
peFatfs_MakeAlarmINI(“0:/PEOS/CLOCK/3.txt“&peAlarm_Info[2]);
}
else if(peTouch_PtI

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-07-22 11:14  多功能GUI设计\
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_Alarm\
     文件       21891  2014-04-20 19:16  多功能GUI设计\APP\App_Alarm\App_Alarm.c
     文件        1725  2014-04-10 19:57  多功能GUI设计\APP\App_Alarm\App_Alarm.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_AllDeskTop\
     文件        1975  2014-04-10 21:08  多功能GUI设计\APP\App_AllDeskTop\App_AllDeskTop.c
     文件         365  2014-04-06 20:30  多功能GUI设计\APP\App_AllDeskTop\App_AllDeskTop.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_Calculator\
     文件        8458  2014-04-10 21:04  多功能GUI设计\APP\App_Calculator\App_Calculator.c
     文件         743  2014-04-01 20:37  多功能GUI设计\APP\App_Calculator\App_Calculator.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_Calendar\
     文件        1135  2014-04-10 21:05  多功能GUI设计\APP\App_Calendar\App_Calendar.c
     文件         277  2014-04-01 20:37  多功能GUI设计\APP\App_Calendar\App_Calendar.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_EBook\
     文件         929  2014-05-16 10:20  多功能GUI设计\APP\App_EBook\App_EBook.c
     文件         516  2014-04-06 20:00  多功能GUI设计\APP\App_EBook\App_EBook.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_Key\
     文件          28  2014-03-07 16:55  多功能GUI设计\APP\App_Key\App_Key.c
     文件          81  2014-03-07 16:55  多功能GUI设计\APP\App_Key\App_Key.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_LockScreen\
     文件        3470  2014-04-20 19:22  多功能GUI设计\APP\App_LockScreen\App_LockScreen.c
     文件         903  2014-04-09 22:34  多功能GUI设计\APP\App_LockScreen\App_LockScreen.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_Mp3Player\
     文件       13069  2014-05-14 09:47  多功能GUI设计\APP\App_Mp3Player\App_Mp3Player.c
     文件        1536  2014-05-14 09:53  多功能GUI设计\APP\App_Mp3Player\App_Mp3Player.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_Seek\
     文件          27  2014-03-08 18:59  多功能GUI设计\APP\App_Seek\App_Seek.c
     文件          83  2014-03-07 14:30  多功能GUI设计\APP\App_Seek\App_Seek.h
     目录           0  2015-01-06 15:10  多功能GUI设计\APP\App_Set\
     文件       14198  2014-04-10 21:08  多功能GUI设计\APP\App_Set\App_Set.c
............此处省略733个文件信息

评论

共有 条评论