wemos / D1_mini_Examples

WeMos D1 & D1 mini Arduino Examples
547 stars 228 forks source link

Don't working digitalWrite() #26

Open LeeTwelve opened 7 years ago

LeeTwelve commented 7 years ago

Hi, I try connect relay to Wemos D1 via 5th pin port (opposite the port is written D14/SDA/D4), but nothing happens.

Sample code:

void setup() {
    pinMode(D4, OUTPUT);
}

void loop() {
  delay(1000);
  digitalWrite(D4, HIGH);
  delay(1000);
  digitalWrite(D4, LOW);
}

This behavior apply to all digital ports.

ddavidov commented 6 years ago

I've got the same issue... Did you find any solution for that?

mike2nl commented 5 years ago

@LeeTwelve @ddavidov You are using the D1 Mini or the D1?

On D1 MIni it is: 7 configurable IO (Default: D1)

Link: https://wiki.wemos.cc/products:d1_mini_shields:relay_shield

esp8266-wemos-d1-mini-pinout