• 1
    Step 1

    X-8266 x1

    X-OLED x1

    18650 battery shield V2 x1

    Simple 3D printed case X1

    You can have a look at the pin map.

    SDA is connected to D1.

    SCL is connected to D2.

    This two pins work as the IIC pins.

    The other pins can be connected to other sensors.

    The X-8266 can really do a lot of IOT works.

    Here I will thank squix. He really do a great work for ESP8266 controlling OLED.

    Here is my code:

    https://github.com/lspoplove/D-duino/blob/master/A...

    Remember change the library.

    #include "SH1106.h"

    SH1106 display(I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);