单片机交通灯C语言设计程序(6)
时间:2025-07-08
时间:2025-07-08
用单片机实现的交通灯设计
P1=seg7[second_counts%10];
Delay(2);
}
}
//south led flashing
void South_North_Flash()
{
GREEN_B=1;
YELLOW_B=!YELLOW_B;
S3=0;
S4=0;
Delay(500);
for(k=0;k<10;k++)
South_North_7seg();
}
//traffic function
void Traffic()
{
switch (Operation_type)
{
上一篇:3-8译码器的VHDL设计
下一篇:2010年高考作文阅卷实录汇编