OLED Display 0.96 (SSD1315)
Contents
Grove - OLED Display 0.96 (SSD1315) inches (Seeed-Studio)
Caractéristiques
Dot Matrix 128×64
Monochrome(white)
3.3V/5V compatible
Communication
I2C : Adresse 0x3C
If your board is ATmega328, such as Seeeduino V4.2 and Arduino UNO, you need to change to soft I2C when using the U8G2 library.This is not required if you are using a SAMD development board.
Si votre carte est ATmega328, comme Seeeduino V4.2 et Arduino UNO, vous devez passer à soft I2C lorsque vous utilisez la bibliothèque U8G2.
Ceci n'est pas nécessaire si vous utilisez une carte de développement SAMD.
Images
Tableau
| Seeeduino | Sensor | |
|---|---|---|
|
5V |
Red | |
|
GND |
Black | |
|
SDA |
White | |
|
SCL |
Yellow | |
|
Grove - OLED Display 0.96 inches - | ||
Drivers
SSD1315 chip
Voltage
3.3 ~ 5.5V
Liens externes
www.seeedstudio.com/Grove-OLED-Display-0-96-SSD1315-p-4294.html shop
wiki.seeedstudio.com/Grove-OLED-Display-0.96-SSD1315 wiki
Code Hello World !
#include <Arduino.h>
#include <U8x8lib.h>
#include <Wire.h>
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display
void setup(void) {
u8x8.begin();
u8x8.setFlipMode(1); // set number from 1 to 3, the screen word will rotary 180
}
void loop(void) {
u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.setCursor(0, 0);
u8x8.print("Hello World!");
}