#include#include
#define uchar unsigned char
#define uint unsigned int
void Delayms(uint MS);
void main(void)
{
DDRA = 0XFF;
PORTA = 0XFF;
DDRC=0XFF;
PORTC=0XFF;
DDRF|=0X0E;
PORTF|=0X0E;
PORTF&=0xF8;
DDRD = 0x00;
PORTD = 0XFF;
DDRB |= 0X10;
PORTB |= 0X10;
while(1)
{
if((PIND&0x0F)!=0x0F);
Delayms(5);
if((PIND&0x0F)!=0x0F)
{
if((PIND&0x01)==0)
PORTA&=~(1<
if((PIND&0x02)==0)
PORTA&=~(1<
if((PIND&0x04)==0)
PORTA&=~(1<
if((PIND&0x08)==0)
PORTA&=~(1<
Delayms(5);
while((PIND&0x0F)!=0x0F);
PORTA = 0xFF;
}
}
}
void Delayms(uint MS)
{
uint i,j;
for( i=0;i
for(j=0;j<1141;j++);
}
技術(shù)專區(qū)
看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
評論