用单片机实现的交通灯设计
Delay(2);
}
}
//east and west flashing
void East_West_Flash()
{
GREEN_A=1;
YELLOW_A=!YELLOW_A;
S1=0;
S2=0;
Delay(500);
for(k=0;k<10;k++)
East_West_7seg();
}
//south and north leds control funtion void South_North_Leds()
{
//south green leds on
RED_A=0;
YELLOW_A=1;