- Availabilty: Directly available from warehouse in Eindhoven
- Model: I2C1.5OLEDWHITE
- SKU: 001749
A 1.5 inch I2C OLED display with 128*128 white pixels and very good viewing angles of at least 160 degrees.
|VCC||3.3V or 5V power supply|
|SCL||I2C SCL (clock signal)|
|SDA||I2C SDA (data signal)|
To get the display working you can use the U8G2 library of olikraus. This can also be installed via the Arduino IDE. You can search for "U8G2" in Manage Libraries install the latest version.
Since the Arduino Uno/Nano/Pro Mini for example does not have enough RAM memory, it can not be used in combination with the "full_buffer" examples of the U8G2 library. In that case, choose the "page_buffer" examples.
We recommend testing the example U8g2 --> page_buffer --> GraphicsTest to get an idea of the possibilities of the library.
One of the initializations below can be placed in the "U8g2 Contructor List" in the "full_buffer" or "page_buffer" example.
To get the "full_buffer" examples working you can use the following initialization with the standard (hardware) I2C connection of your Arduino:
U8G2_SSD1327_MIDAS_128X128_F_HW_I2C u8g2 (U8G2_R0,/* reset = */U8X8_PIN_NONE);
For the "page_buffer" examples, this initialization can be used:
U8G2_SSD1327_MIDAS_128X128_1_HW_I2C u8g2 (U8G2_R0,/* reset = */U8X8_PIN_NONE);
Do you prefer to use the (slower) software implementation of I2C because you maybe don't have I2C pins? Then use these initializations (SCL on pin 9, SDA on pin 8):
full_buffer: U8G2_SSD1327_MIDAS_128X128_F_SW_I2C u8g2 (U8G2_R0,/* clock = */9,/* data = */8,/* reset = */U8X8_PIN_NONE);
page_buffer: U8G2_SSD1327_MIDAS_128X128_1_SW_I2C u8g2 (U8G2_R0,/* clock = */9,/* data = */8,/* reset = */U8X8_PIN_NONE);
With the software implementation of I2C you can use any available GPIO pin as SDA or SCL pin. This can be useful if you want to be able to use multiple displays.
Note: The hardware I2C does not work with the Arduino Due. (Error in OLED library or Due I2C library)