// create Test Scenario Usage Anode and Cathode. Common Pin x2 in 1 phase
int R = 2;
int Y = 3;
int G = 4;
int reset = 0;
const int phase[4] ={reset , G , Y , R };
const int pinLed[4] ={
0b0000, //0
0b0100, //G
0b0010,
0b0001,
};
void setup() {
Serial.begin(9600);
pinMode(R, OUTPUT);
pinMode(Y, OUTPUT);
pinMode(G, OUTPUT);
}
void loop() {
//Serial.println();
for (int 0 ; i<4; i++) {
showLed(1,0,0);
}
delay(100);
}
void showLed(R , Y , G) {
int pin[4] {0b0000, 0b0001, 0b0010, 0b0100,};
}