D1 mini unable to blink the embeded LED
Posted: Thu Jun 22, 2017 2:49 pm
Hi.
I have a D1 mini and am unable to blink the embeded LED.
I'm trying to do so by flashing with arduino IDE.
I'm trying with this code at least to see if something happens but the led stays on.
I've even tried this but still, the led remains on ! Same if I digitalWrite (i, LOW) !
Any advice ?
I have a D1 mini and am unable to blink the embeded LED.
I'm trying to do so by flashing with arduino IDE.
I'm trying with this code at least to see if something happens but the led stays on.
Code: Select all
void setup() {
for (int i =1; i<18; i++)
{
pinMode(i, OUTPUT);
}
}
void loop() {
for (int i=1; i<18; i++)
{
digitalWrite(i, LOW);
}
delay(1000);
for (int i=1; i<18; i++)
{
digitalWrite(i, HIGH);} // Turn the LED off by making the voltage HIGH
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
I've even tried this but still, the led remains on ! Same if I digitalWrite (i, LOW) !
Code: Select all
void setup() {
for (int i =1; i<18; i++)
{
pinMode(i, OUTPUT);
digitalWrite(i, HIGH);
}
}
Any advice ?