Skip to content

Wrong GPIO number on ESP8266-12 #437

Closed
@anhhuy0501

Description

@anhhuy0501

I use this code:

void setup() {
pinMode(4, OUTPUT);
}
void loop() {
digitalWrite(4,0);
delay(1000);
digitalWrite(4,1);
delay(1000);
}

The esp8266-12 should change the state of pin GPIO4 but it changes the state of GPIO5 instead. Is the pin diagram wrong?

The pin diagram of ESP8266-12 look like in this link: https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP_improved_stability.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions