基于单片机的led动感乐曲显示屏设计报告内容摘要:

3[1]10)) word[2]=0b00011111。 if((x3[1]=5)amp。 amp。 (x3[1]7)) word[2]=0x0f。 if((x3[1]=2)amp。 amp。 (x3[1]5)) word[2]=0x07。 if((x3[1]=1)amp。 amp。 (x3[1]2)) word[2]=0x03。 if((x3[1]=0)amp。 amp。 (x3[1]1)) word[2]=0x01。 } void cmc(void){ DDRD=0xff。 PORTD=0xff。 if(x3[2]=20) word[4]=0b01111111。 if((x3[2]=10)amp。 amp。 (x3[2]20)) word[4]=0b00111111。 if((x3[2]=7)amp。 amp。 (x3[2]10)) word[4]=0b00011111。 if((x3[2]=5)amp。 amp。 (x3[2]7)) word[4]=0x0f。 if((x3[2]=2)amp。 amp。 (x3[2]5)) word[4]=0x07。 if((x3[2]=1)amp。 amp。 (x3[2]2)) word[4]=0x03。 if((x3[2]=0)amp。 amp。 (x3[2]1)) word[4]=0x01。 }void cmd(void){ DDRD=0xff。 PORTD=0xff。 x3[3]=(x3[3]+x3[4]+x3[5]+x3[6]+x3[7]+x3[8])/6。 if(x3[3]=330) word[6]=0b01111111。 if((x3[3]=320)amp。 amp。 (x3[3]330)) word[6]=0b00111111。 if((x3[3]=315)amp。 amp。 (x3[3]320)) word[6]=0b00011111。 if((x3[3]=310)amp。 amp。 (x3[3]315)) word[6]=0x0f。 if((x3[3]=305)amp。 amp。 (x3[3]310)) word[6]=0x07。 if((x3[3]=300)amp。 amp。 (x3[3]305)) word[6]=0x03。 if((x3[3]=0)amp。 amp。 (x3[3]300)) word[6]=0x01。 }// Timer 0 比较匹配中断服务p。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。