单片机交通灯C语言设计程序(5)
时间:2025-02-24
时间:2025-02-24
用单片机实现的交通灯设计
GREEN_A=1;
//east red leds on
RED_B=1;
YELLOW_B=1;
GREEN_B=0;
}
//south and north 7segments control function void South_North_7seg()
{
S1=0;
S2=0;
S3=0;
S4=0;
if(second_counts>0)
{
S3=1;
S4=0;
P1=seg7[second_counts/10];
Delay(2);
S3=0;
S4=1;
上一篇:3-8译码器的VHDL设计
下一篇:2010年高考作文阅卷实录汇编