I2C 0.96" OLED 128x64- Blue

From Elecrow
Revision as of 11:58, 5 May 2021 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This OLED display module is small, only 0.96” diagonal, it is made of 128x64 individual blue OLED pixels, each one is turn on or off by the controller chip. It works without backlight, that is, in a dark environment, OLED display is higher compared to that of LCD display, you will like the miniature for its crispness.
This module uses I2C to communicate with microcontroller such as Arduino. Compares to the 0.96" OLED 128x64- Blue, this module has blue colors, but please very notice that this is a single color OLED indeed, that means that top quarter is yellow, and the rest ¾ is blue. The color can not be changed.
Model: DO1286496BY

I2C 0.96 OLED 128x64 Blue Yellow.JPG I2C 0.96 OLED 128x64 Blue Yellow1.jpg

Features

  • Diagonal Screen Size:0.96"

Number of Pixels:128 x 64
Color Depth:Monochrome (Blue)
Dimension:27.8 x27.3x 4.3 mm
Working Voltage: 3.3~ 5V DC
Power: 0.06W Max
Viewing Angle: >160 Degree
Duty:1/32
Brightness ( cd/m2):150 (Typ) @ 5V
Interface: I2C

Usage

1.Hardware connection

Connect the OLED to the Crowduino.

Oledhwareconnect1.jpg

2.Connect the board to PC using USB cable.

3.Download the library OLED library;Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0.1\libraries.

4.Open the code directly by the path:File -> Example ->U8glib->Ele_0_96_12864.

#include "U8glib.h"
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);	

void drawURL(void)
{
   u8g.setFont(u8g_font_9x18);
   u8g.drawStr(25,10,"Elecrow");
   u8g.setFont(u8g_font_7x14);
   u8g.drawStr(5,35,"www.elecrow.com");

}
void setup(void) {
}

void loop(void) {
  // picture loop
  u8g.firstPage();  
  do {
    drawURL();
  u8g.setColorIndex(1);
  } while( u8g.nextPage() );  
  // rebuild the picture after some delay
  delay(200);  
}

5.Upload the Code,you shoule see the display of OLED.


Oledshow1.jpg

Resource