Arduino - Code: // For a connection via I2C using Wire include #include // Only needed for Arduino 1.6.5 and earlier #include "SH1106Wire.h" //alis for `#include "SH1106Wire.h"` #include "Graphic_esp8266_dht22_oledi2c.h" #include #define DHTPIN D5 // what pin we're connected to #define DHTTYPE DHT22 // DHT 11 // Initialize the This is bathroom fan / light controller with temperature measurement on i2c and 2 hardware buttons. So, I am using pins: GPIO12 GPIO13 GPIO14 GPIO15. GPIO2 GPIO3 GPIO4 GPIO5. When I have tried to use GPIO0 connected sensor/relays blocks start of the board. To restart the board I have had unplug that pin and manually restart board. Shield for the Wemos D1 Mini board for learning development on the ESP8266 Example sketches to help connect a WEMOS as SPI MASTER to Arduino UNO SLAVE For example to enable the pin labelled D1 for output for the WeMos you would need to use the following code: void setup () { Serial.begin (115200); pinMode (5, OUTPUT); //Digital pin 1 is pin 5 on the ESP8266 } The full list of output pins to identifiers are as follows, taken from the source code: These can be used to program the WeMos D1 mini The Digital pin numbers in the app (D1-8, D1-10 or D1-16 depending on the device) are GPIO numbers. The only reason to use the ā€œDā€ numbers screen printed on to the Wemos or NodeMCU devices is to assist with wiring. So, I work the other way - in my code I always use GPIO numbers and add a comment at the side like this: Here are some of the products I used. Smart Electronics D1 mini – Mini NodeMcu 4M bytes Lua WIFI Internet of Things development board based ESP8266 by WeMos. 0.66″ inch For Wemos Oled 64X48 IIC I2C LCD OLED LED Dispaly Shield for Arduino Compatible For WeMos D1 Mini SSD1306 OLED Shield. by hotcoin.net. WeChat Reddit LinkedIn Share. kU0c0v.

wemos d1 mini i2c example