標(biāo)題: 單片機(jī)音樂(lè)播放器源程序 [打印本頁(yè)]

作者: 待定中......    時(shí)間: 2017-5-17 21:29
標(biāo)題: 單片機(jī)音樂(lè)播放器源程序
需要的自取。


單片機(jī)源程序如下:


  1. #include "reg52.h"                         //此文件中定義了單片機(jī)的一些特殊功能寄存器
  2. #include "SoundPlay.h"
  3. #include"music.h"

  4. typedef unsigned int u16;          //對(duì)數(shù)據(jù)類型進(jìn)行聲明定義
  5. typedef unsigned char u8;



  6. void Delay1ms(unsigned int count)
  7. {
  8.         unsigned int i,j;
  9.         for(i=0;i<count;i++)
  10.         for(j=0;j<120;j++);
  11. }

  12. void main()
  13. {
  14.         InitialSound();
  15.         while(1)
  16.         {
  17.                 Play(Music_Girl,0,3,360);
  18.                
  19.                 Delay1ms(500);
  20. ……………………

  21. …………限于本文篇幅 余下代碼請(qǐng)從51黑下載附件…………
復(fù)制代碼

所有資料51hei提供下載:
音樂(lè)播放器.rar (193.31 KB, 下載次數(shù): 33)







歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1