欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3900|回復: 3
打印 上一主題 下一主題
收起左側

89c52.51單片機蜂鳴器程序 -- 極樂凈土 功能可以實現親測

[復制鏈接]
跳轉到指定樓層
樓主
ID:396815 發表于 2019-6-17 09:42 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
下面是例子,試過可以使用

#include <REG52.H>   
#include <INTRINS.H>   
#include "reg52.h"       
typedef unsigned int u16;          //對數據類型進行聲明定義
typedef unsigned char u8;

sbit k1=P3^1;         //定義P31口是k1



sbit Beep =  P1^5;

unsigned char n=0;      
unsigned char code music_tab[] ={ 0xff,  
               

         0x1c,0x10,0x1c,0x20,0x20,0x10,
0x1c,0x10,0x1c,0x20,0x20,0x10,
0x1c,0x10,0x1c,0x20,0x20,0x10,
0x1c,0x20,0x18,0x20,

0x1c,0x10,0x1c,0x20,0x20,0x10,
0x1c,0x10,0x1c,0x20,0x20,0x10,
0x1c,0x20,0x18,0x20,0x15,0x20,0x13,0x20,

0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,

0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,

0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,

0x30,0x10,0x33,0x10,0x39,0x10,0x40,0x10,
       
0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,

0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,
                               
0x2b,0x10,0x26,0x10,0x20,0x10,0x18,0x10,
0x19,0x08,0x18,0x08,0x19,0x08,0x1c,0x08,
0x20,0x10,0x26,0x10,

  0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,

0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,

0x2b,0x10,0x26,0x10,
0x39,0x08,0x40,0x08,0x39,0x08,0x40,0x08,

0x30,0x10,0x33,0x10,0x39,0x10,0x40,0x10,



  0x39,0x10,
  0x40,0x08,0x39,0x08,0x30,0x10,
  0x39,0x08,0x30,0x08,0x2b,0x10,
  0x2b,0x08,0x26,0x08,0x20,0x08,
  0x18,0x08,0x26,0x08,0x20,0x08,
  0x18,0x10,0x19,0x08,0x18,0x08,
  0x19,0x08,0x1c,0x10,0x20,0x10,
  0x1c,0x10,0x20,0x10,0x1c,0x10,




                                          0xff,0xff,0xff,0xff ,


                                         0x00
};   


unsigned char code music_tab1 [] = { 0xff,    0x18,0x08,0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,
  0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,
  0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,                       
  0x18,0x10,0x19,0x10,0x1c,0x10,0x20,0x10,
   0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,
  0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,
0x15,0x10,0x13,0x10,0x10,0x10,0x0c,0x10,
0x0d,0x08,0x0c,0x08,0x0d,0x08,0x0e,0x08,
0x10,0x10,0x13,0x10,
0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,
  0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,
  0x15,0x10,0x13,0x10,
0x1c,0x08,0x20,0x08,0x1c,0x08,0x20,0x08,
0x18,0x10,0x19,0x10,0x1c,0x10,0x20,0x10,


1 (極樂凈土).zip

13.72 KB, 下載次數: 57, 下載積分: 黑幣 -5

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏1 分享淘帖 頂 踩
回復

使用道具 舉報

沙發
ID:396815 發表于 2019-6-17 09:42 | 只看該作者
只是一部分,全部還在文件里面
回復

使用道具 舉報

板凳
ID:558859 發表于 2019-6-22 21:54 | 只看該作者
沒有下載就扣除黑幣了
回復

使用道具 舉報

地板
ID:396815 發表于 2019-12-10 14:26 | 只看該作者
qysj22 發表于 2019-6-22 21:54
沒有下載就扣除黑幣了

有的,沒有的話點擊鏈接就可以了
回復

使用道具 舉報

5#
無效樓層,該帖已經被刪除
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表