Almost all the OLED look like the same.
I always want to make it look more compact.
So I made this tiny 1.3 OLED. I call it "X-OLED".
Then I develop a project called "X-project".
All the shields or control boards' shape should be limited as X-OLED's shape.
X-8266 is a tiny NodeMCU.
Its circuits is almost the same like NodeMCU.
X-OLED's power pins and data pins are on the two side of the board.
It is easy to use something to cover the pins.
Step 1: Prepare
Step 2: Coding
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:
Remember change the library.
SH1106 display(I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);