When defining the pin for ssd1306 in \ Wi PWN master \ arduino \ Wi PWN \ Wi PWN. ino, the pin number of SCL was incorrectly swapped with the pin number of SDA. The correct code should be "SSD1306 display (0x3c, 4, 5);//GPIO 5=D1, GPIO 4=D2"
I'm not sure if this is a pin numbering issue caused by different ESP8266 development boards or an issue with the code itself. At least I have verified this error on three different ESP8266 development boards.
(This is the test of my ESP8266 development boards)
The following picture is the pin diagram of my ESP8266 development boards.
When defining the pin for ssd1306 in \ Wi PWN master \ arduino \ Wi PWN \ Wi PWN. ino, the pin number of SCL was incorrectly swapped with the pin number of SDA. The correct code should be "SSD1306 display (0x3c, 4, 5);//GPIO 5=D1, GPIO 4=D2"
I'm not sure if this is a pin numbering issue caused by different ESP8266 development boards or an issue with the code itself. At least I have verified this error on three different ESP8266 development boards. (This is the test of my ESP8266 development boards)
The following picture is the pin diagram of my ESP8266 development boards.