Post topics, source code that relate to the Arduino Platform

User avatar
By Plank
#85816 Hi, I am using Wemos D1 to implement led turn on and off program. I am using pin D8 to connect to led positive and negative to ground pin. The following is the code for the module :-
void setup() { pinMode(8,OUTPUT)
}
void loop() { digitalWrite(8, HIGH);
delay(3000);
digitalWrite(8, LOW);
delay(3000);
}
According to the code the LED should turn on and off after every 3 seconds. However, the led keeps on glowing and doesn't turn off.
Is there a error in my code or pin specification( like D8 )?