搜索资源列表
PROJECT-V2
- 8 7 segment display through 74hc138 and at89c51
8、交通灯
- //---定义IO口---// #define GPIO_DIG P0 //显示段码端口,74HC573锁存器; #define GPIO_PALCE P1 //数码管片选端口,74HC138译码器; #define GPIO_TRAFFIC P2 //交通灯端口; sbit RED10=P2^0; //上人行道红灯; sbit GREEN10=P2^1; //上人行道绿灯; sbit RED11=P2^2; //上机动车红灯; sbit YE