So I was starting with LED blink with arduino uno ,
First I blink using the pin 13 which worked fine then I decided to use PIN 12 as well, but when LED on 13 is lit, LED on 12 is off and vice versa , so I set the code like this below
int LED_YELLO_PIN = 13;
int LED_GREEN_PIN = 12;
void setup() {
Serial.begin(9600);
pinMode(LED_YELLO_PIN, OUTPUT);
pinMode(LED_GREEN_PIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_GREEN_PIN, HIGH);
digitalWrite(LED_YELLO_PIN, LOW);
delay(1000);
digitalWrite(LED_YELLO_PIN, HIGH);
digitalWrite(LED_GREEN_PIN, LOW);
delay(500);
}
and here are unexpected the result : - YouTube
How can I male these two LED blink reciprocally ?