带闹钟的电子锁.docVIP

  • 4
  • 0
  • 约8.07千字
  • 约 13页
  • 2016-11-04 发布于广东
  • 举报
#includereg52.h #define uint unsigned int #define uchar unsigned char sbit rs=P1^0; sbit en=P1^4; sbit re=P1^2; sbit gr=P1^3; sbit beep=P1^1; sbit mod=P1^5; sbit up=P1^6; sbit open=P1^7; uchar temp[4]; uchar pass[4]; uchar yourpass[]={your pass:}; uchar made[]={ made by mr.Lee}; uchar password[]={ your new pass:}; uchar welcome[]={ welcome!}; uchar led_day[]={MONTUEWENTHUFRISATSUN}; uchar ge,shi,bai,qian,si,fen,miao,day=1,nian,yue=1,ri=1,a,b,c,d,e,f,g,h=5,j,k,l,m,scale=16,being; uchar count,go; uchar num,num1,num2; uchar key() { P2=0x0f; if(P2!=0x0f) { num1=P2; P2=0xf0; num2=P2;

文档评论(0)

1亿VIP精品文档

相关文档