用单片机模拟控制交通灯

日期:2012-03-21 21:42:41 人气:1

用单片机模拟控制交通灯

#include #define uchar unsigned char #define uint unsigned int sbit RED_A=P0^0; sbit YELLOW_A=P0^1; sbit GREEN_A=P0^2; sbit RED_B=P0^3; sbit YELLOW_B=P0^4; sbit GREEN_B=P0^5; uchar Flash_Count = 0; Operation_Type = 1; void DelayMS(uint x
    A+
热门评论