標(biāo)題:
音樂播放器
[打印本頁]
作者:
唯戀一人心
時(shí)間:
2017-11-9 16:02
標(biāo)題:
音樂播放器
#include "reg52.h" //此文件中定義了單片機(jī)的一些特殊功能寄存器
#include "SoundPlay.h"
#include"music.h"
typedef unsigned int u16; //對數(shù)據(jù)類型進(jìn)行聲明定義
typedef unsigned char u8;
void Delay1ms(unsigned int count)
{
unsigned int i,j;
for(i=0;i<count;i++)
for(j=0;j<120;j++);
}
void main()
{
InitialSound();
while(1)
{
Play(Music_Girl,0,3,360);
Delay1ms(500);
Play(Music_Same,0,3,360);
Delay1ms(500);
Play(Music_Two,0,3,360);
Delay1ms(500);
}
}
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1