- 1、本文档共20页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
音乐盒 程序(Music box program)
音乐盒 程序(Music box program)
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Function: music adjustable
Use note: k1 as the music select key to switch music.
The author; Zhang wei
Date: 2013-06-06
Yibin college studio copyright
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
# include reg52. H
# define uchar unsigned char
# define uint unsigned int
Sbit key = P3 ^ 2; / / press key2 to switch songs
Sbit beep = P3 ^ 7; / / continuous IO of the buzzer
Uchar count; / / song logo
Uchar timeh, timel, I; / / regular initial high and low
/ / -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- d -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
/ / programming rule: the byte top is simplified, the low is duration,
/ / how many sixteenth notes
/ / 1-7 represents central C, 8-e stands for high octave and 0 stands for pause
/ / the final 0 is the closing sign
Uchar code QNZL [] = {/ / millennium
0 x12, 0 x22, 0 x34, 0 x84, 0 x74, 0 x54, 0 x38, x42 0, 0 x32, x22 0, 0 x42, 0 x34, 0 x84, 0 x72, 0 x82, 0 x94, 0 xa8, 0 x08,
/ / a prelude to
0 x32, 0 x31, 0 x21, 0 x32, 0 x52, 0 x32, 0 x31, 0 x21, 0 x32, 0 x62,
/ / the lights of bamboo trees to the desert
X21 x32 0, 0 x31, 0, 0 x32, 0 x82, 0 x71, 0 x81, 0 x71, 0 x51, 0 x32, 0 x22.
/ / the seven colors of the country continue to drift
0 x32, 0 x31, 0 x21, 0 x32, 0 x52, 0 x32, 0 x31, 0 x21, 0 x32, 0 x62,
/ / there is a mysterious grey vortex
0 x32, 0 x31, 0 x21, 0 x32, 0 x83, 0 x82, 0 x71, 0 x72, 0 x02,
/ / caught me in the mist
Xa2 x63 0, 0 xa1, 0, 0 x62, 0 x92, 0 x82, 0 x52,
/ / unclear hands
X63 0 x31, 0 x51, 0, 0 x51, 0 x63, 0 x51, 0 x63, 0 x51, 0 x62, 0 x82, 0 x7c, 0 x02,
/ / who passes the gentleness of a flower
X71 0 x61, 0, 0 x82, 0 x71, 0 x62, 0 xa2, 0 x71, 0 x76,
/ / through the pain of a thousand years
X71 0 x61, 0, 0 x82, 0 x71, 0 x62, 0 x52, 0
您可能关注的文档
- 中风针灸(Stroke acupuncture).doc
- 乙肝专题(Hepatitis b project).doc
- 亦舒经典语录(Yishu classic quotes).doc
- 以下的顺口溜不要求会背,结合书本多读,基本上做选择题做一个对一个(The following is not required to recite, combine books to read more, basically make a choice to do one to one).doc
- 以净化为话题作文导写(Take purification as the topic composition guide).doc
- 以顾客为中心之真正含义().doc
- 优化电脑速度(Optimizing computer speed).doc
- 优劣分明 速腾1.4T必看的六大要素(The advantages and disadvantages of the 1.4 T will be the six elements).doc
- 优秀医生之我见(The best doctor I've ever seen).doc
- 优秀的包装设计应具备什么特征(What are the characteristics of good packaging design).doc
- 小学科学:ESP8266智能插座电路原理与动手实践研究教学研究课题报告.docx
- 《金融开放浪潮下我国多层次监管体系构建与创新研究》教学研究课题报告.docx
- 区域教育质量监测中人工智能应用的数据质量分析与优化策略教学研究课题报告.docx
- 《金融科技监管中的数据治理与合规性要求》教学研究课题报告.docx
- 《3D打印技术在航空航天领域中的多材料制造与复合材料应用》教学研究课题报告.docx
- 《绿色金融发展中的政府职能与市场机制研究》教学研究课题报告.docx
- 《植物工厂多层立体栽培光环境调控技术对植物生长发育节律的调控机制探讨》教学研究课题报告.docx
- 销售团队年度业绩总结.docx
- 银行风险管理与金融危机防范.docx
- 银行网络攻击预警与快速响应机制.docx
最近下载
- 2025年江西管理职业学院教师招聘考试笔试备考题库.docx VIP
- 2024中国中信金融资产管理股份有限公司人力资源部(党委组织部)社会招聘笔试模拟试题及答案解析.docx VIP
- 高考英语完型填空汇总.doc VIP
- 合作经营合同(2020).docx VIP
- 关节活动度测定ppt课件.pptx VIP
- 体育教师专业发展计划.doc VIP
- 影视产业概论 教学大纲.docx VIP
- 明星志愿3群星合辑(星光圆舞曲+银色幻想曲)攻略-详细整理版精要.docx
- Q-CR 570-2017 电气化铁路接触网用力矩控制式胶粘型锚栓.docx VIP
- 煤矿机电事故专项应急预案及现场处置方案.pdf VIP
文档评论(0)