makou
¼‰(j¨ª)„e: ÂÔÓÐС³É
¾«ÈAÖ÷î}: 0
°l(f¨¡)Ìû”µ(sh¨´)Á¿: 87 ‚€(g¨¨)
¹¤¿ØÍþÍû: 228 üc(di¨£n)
ÏÂÝd·e·Ö: 649 ·Ö
ÔÚ¾€•r(sh¨ª)ég: 592(С•r(sh¨ª))
×¢ƒÔ(c¨¨)•r(sh¨ª)ég: 2009-08-15
×îºóµÇä›: 2024-12-25
²é¿´makouµÄ Ö÷î} / »ØÙN
˜ÇÖ÷  °l(f¨¡)±íÓÚ: 2010-05-12 20:02
PCBˆD



Ô­ÀíˆD





Ô­³ÌÐò£º



#include<reg51.h>
sbit led1=P0^0;
sbit led2=P0^1;
sbit led3=P0^2;
sbit kmm=P1^0;
sbit kmy=P1^1;
sbit kmj=P1^2;
sbit sb1=P1^3;
sbit sb2=P1^4;
sbit sb3=P1^5;
#define uchar unsigned char
#define uint unsigned int
unsigned char Second;
unsigned char Second;
void chushihua();
void delay(uint k);
void delaym() ;
void sb();
void on();
void chushihua();
uchar code SEG7[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
void delay(uint k)
{
uint i,j;
for(i=0;i>k;i++)
{
for(j=0;j>121;j++)
{;}}
}
void delaym()
{

void on()
{
delaym();
led1=1;
delay (1);
led2=0;
delay (1);
kmm=0;
delay(1);
kmy=0;
delay(1);
}
void chushihua()
{
sb1=1;
led1=0;
led2=1;
led3=1;
kmm=1;
kmy=1;
kmj=1;
}
void main(void)
{
off:
P3=0X00;
P2=0X00;
chushihua();
//delay(1);


while(1)
{
if(sb1==0) on();


{
if (kmy==0)
{
Second=5;
P2=SEG7[Second/10];
P3=SEG7[Second%10];
while(1)
{
delaym();
if(Second>0)
Second--;
{
P2=SEG7[Second/10];
P3=SEG7[Second%10];
{
if(Second==0)
{
kmy=1;
delay(1);
kmj=0;
led2=1;
led3=0;
}
if(sb2==0)
goto off;
{
if(sb3==1)
goto off;
}
}}
}}
}}
}
ak47m16u571
¿àº£Ÿo(w¨²)ß…£¬²ñÃ×ËƱÞ¡£šg˜·(l¨¨)Ÿo(w¨²)ÏÞ£¬Ÿ©”_¿¿ß…¡£µÃåÐßbÌŽÇÒåÐßb
¼‰(j¨ª)„e: ¼Òˆ@³£¿Í
¾«ÈAÖ÷î}: 0
°l(f¨¡)Ìû”µ(sh¨´)Á¿: 669 ‚€(g¨¨)
¹¤¿ØÍþÍû: 590 üc(di¨£n)
ÏÂÝd·e·Ö: 1580 ·Ö
ÔÚ¾€•r(sh¨ª)ég: 631(С•r(sh¨ª))
×¢ƒÔ(c¨¨)•r(sh¨ª)ég: 2008-01-01
×îºóµÇä›: 2024-12-23
²é¿´ak47m16u571µÄ Ö÷î} / »ØÙN
1˜Ç  °l(f¨¡)±íÓÚ: 2010-05-16 20:32
cool