Difference between revisions of "OLED Display 1.12"
(→Pilotes (Drivers)) |
(→Grove - OLED Display 1.12 inches (Seeed-Studio)) |
||
| Line 34: | Line 34: | ||
=== Voltage === | === Voltage === | ||
Operating Voltage: 3.3~5V | Operating Voltage: 3.3~5V | ||
| + | === Mise en route (Setup) === | ||
| + | connecter au port I2c<br> | ||
| + | installer la bibliotheque<br> | ||
| + | github -> <br> | ||
| + | |||
| + | il faut aussi la bibliotheque arduino wire.h | ||
| + | |||
| + | veuillez adapter le code selon la version OLED utilisé | ||
| + | |||
=== Code === | === Code === | ||
Revision as of 18:53, 28 March 2020
Contents
Grove - OLED Display 1.12 inches (Seeed-Studio)
Caractéristiques
16 niveaux de gris
il y a 2 versions
matrix OLED v1.0
96 × 96 dot
Pilote SSD1327
matrix OLED v2.1 *utilisé pour nos tests
128 × 128 dot
Pilote SH1107G
Les deux versions partagent la même bibliothèque qui de base était conçu pour la version 1.0
Communication
Port I2c
Support
Supports both Normal and Inverse Color Display
Supports Continuous Horizontal Scrolling
Pilotes (Drivers)
OLED Display: LY120-96096
Driver I2C:
v1.0 SSD1327Z
v2.1 SH1107G
Voltage
Operating Voltage: 3.3~5V
Mise en route (Setup)
connecter au port I2c
installer la bibliotheque
github ->
il faut aussi la bibliotheque arduino wire.h
veuillez adapter le code selon la version OLED utilisé
Code
/*
The new OLED module drive IC has two version,
1. SH1107G
2. SSD1327
Change the paramater of the drive IC name to init the module.
**
** SeeedGrayOled.init(SSD1327); // SSD1327 or SH1107G
**
Copyright - Seeedstudio
Author - lambor
Date - 4/24/2017
*/
#include <Wire.h>
#include <SeeedGrayOLED.h>
#include <avr/pgmspace.h>
void setup()
{
Wire.begin();
SeeedGrayOled.init(SSD1327); //initialize SEEED OLED display
SeeedGrayOled.clearDisplay(); //Clear Display.
SeeedGrayOled.setNormalDisplay(); //Set Normal Display Mode
SeeedGrayOled.setVerticalMode(); // Set to vertical mode for displaying text
for(char i=0; i < 12 ; i++)
{
SeeedGrayOled.setTextXY(i,0); //set Cursor to ith line, 0th column
SeeedGrayOled.setGrayLevel(i); //Set Grayscale level. Any number between 0 - 15.
SeeedGrayOled.putString("Hello World"); //Print Hello World
}
}
void loop()
{
}