Instructions (for use with Arduino):
Search for SSD1306 in Library manager
Install the library
There are 4 pin on the OLED module, GND, VCC, SCL and SDA. Connect to Arduino as:
GND – GND on Arduino Uno
VCC – 5V on Arduino Uno
SCL – A5 on Arduino Uno
SDA – A4 on Arduino Uno
u8glib (Universal Graphics Library for 8 Bit Embedded Systems) is a graphics library with support for many different displays.
Download u8glib, import the library from the add library menu in Arduino IDE, and run the
HelloWorld example in the library.
In the HelloWorld, only un-comment the following constructor to make it work: