Un ecran Oled plus petit, que j'ai recu en retard
Petit ecran...petite image...
Caracteristiques :
OLED (Organic Light Emitting Diodes) is a thinner, more efficient technology than LCD because OLEDs emit light rather than requiring a backlight. This allows for high contrast, a thinner build, and reduced power. At only .47 x 1.5 inches (including the PCB) this mini display is one of our favorites.
This monochrome display comes in either blue or white pixels (selectable in the options above) and can display up to three lines of text. It ships out pre-assembled so you can use it right out of the box! I2C is also supported on this module.
Specification:
Port:
Data
Prix :
2,15 euros
Datasheet :
En général, ça rassure de voir que ça marche chez d'autres.
Décommenter la ligne :
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // Adafruit ESP8266/32u4/ARM Boards + FeatherWing OLED
Cette bibliothèque pour 64 lignes fonctionne correctement, si je ne dépasse pas les limites de l’écran.
L'image est floue mais on voit les 4 lignes
#include <OLED_I2C_128x64_Monochrome.h>
#include <Wire.h>
#include <avr/pgmspace.h>
void setup()
{
lcd.init(true);
lcd.printString("Hello!", 0, 0);
lcd.printNumber(long(9999), 0, 1);
lcd.printNumber(float(9.99), 1, 0, 2);
lcd.printString("Hello!", 0, 3);
}
void loop()
{
// Nothing to do here
}