用单片机实现的交通灯设计
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;