Introduction - If you have any usage issues, please Google them yourself
/ define IO port --- //
#define GPIO_DIG P0 // show segment code port, 74HC573 latch;
#define GPIO_PALCE P1 // digital segment select port, 74HC138 decoder;
#define GPIO_TRAFFIC P2 // traffic light port;
Sbit RED10 = P2 ^ 0; // on the street red light;
Sbit GREEN10 = P2 ^ 1; // on the sidewalk green light;
Sbit RED11 = P2 ^ 2; // on the motor red light;
Sbit YELLOW11 = P2 ^ 3; // on the motor vehicle yellow light;
Sbit GREEN11 = P2 ^ 4; // on the green car;
Sbit RED00 = P3 ^ 0; // right walkway red light;
Sbit GREEN00 = P3 ^ 1; // right lane green light;
Sbit RED01 = P2 ^ 5; // right motor red light;
Sbit YELLOW01 = P2 ^ 6; // right motor vehicle yellow light;
Sbit GREEN01 = P2 ^ 7; // right motor green light;