void setup() {
pinMode(D1, OUTPUT);
pinMode(D2, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(D1, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(D1, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(D2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(D2, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Please help me if I am doing anything wrong or is anything is missing. Here is the schematic for it -
https://acrobotic.com/media/wysiwyg/pro ... tal-01.png