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.
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) !
void setup() {
for (int i =1; i<18; i++)
{
pinMode(i, OUTPUT);
digitalWrite(i, HIGH);
}
}
Any advice ?