I'm having trouble trying to synchronize pins 5&6 with an if statement. I would like for Pin 5 to go high&low when pin 6 does, but I'm having difficulty finding a solution for the syntax.
This is what I have so far.
void setup() {
// put your setup code here, to run once:
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(6, HIGH);
delay(3000);