Description:
OLED display, no need backlight, self-illumination, the display performance is better than the traditional LCD display, also lower consumption.
Driver IC: SSD1306
Size: 0.91 inch OLED
Resolution: 128 x 32
IIC interface
Display Color: White/Blue
Pin Description:
GND: Power Ground
VCC: Power + (DC 3.3 ~5v)
SCL: Clock Line
SDA: Data Line
Package:
1 X 0.91 inch OLED LCD Display Module
ทดสอบการทำงาน
1. ลง Library SSd1306 ก่อน

2. adafruit gfx library

3. จากนั้นนำโคดนี้ไปอัพโหลดโค้ดลงบอร์ด Arduino
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32
#define OLED_RESET -1
Adafruit_SSD1306 OLED(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup() {
OLED.begin(SSD1306_SWITCHCAPVCC, 0x3C);
OLED.clearDisplay();
OLED.setTextColor(WHITE, BLACK);
OLED.setCursor(15, 0);
OLED.setTextSize(1);
OLED.println("www.MikroElec.com");
OLED.setCursor(10, 18);
OLED.setTextSize(2);
OLED.println("Test OLED");
OLED.display();
}
void loop() {
}
4.จะได้ผลทดสอบเหมือนในรูป
