ESP8266-12F + 0.91" 128x32 I2C OLED LCD
Posted: Sun Apr 09, 2017 9:17 am
Hi guys,
I' m from France , sorry for my bad English.
I'm trying to make a basic thing. Just connect ESP8266-12F + 0.91" 128x32 I2C OLED LCD
Connections :
Gnd > Gnd
Vcc > 3.3 v
SDA > Gpio4 pull-up resistor 4.7k to 3.3 v
SCL > Gpio5 pull-up resistor 4.7k to 3.3 v
The LCD don't show any text, no light.
This is the code I use :
/*OLED 0.91" Blue 128X32 I2C IIC Display Module UK Tested
onboard SSD1106 display driver is U8GLIB compatible
SSD1306 Graphics Drive IC - Only 4 connections GND VCC SCL SDA
Suitable for Arduino, PIC, MSP430, STM32, ESP8266, Raspberry Pi projects
These displays are Tiny!! Only ??mm x ??mm x ?.?mm
Ultra Low Power as with OLED there is no backlight required
Runs on 3.3V or 5V with no level shifters required.
This display is fully supported by the u8glib library
so is easily used on Arduino or ESP8266
In the u8glib driver, simply uncomment this line
to select the correct driver:
U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NO_ACK);
Also Works with the Adafruit SSD1306 + GFX Library
just change i2c address in 128x32 demo from 0x3D to 0x3C
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
*/
#include "Wire.h"
#include "U8glib.h"
U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NO_ACK);
void draw() {
// graphic commands to redraw the complete screen should be placed here
u8g.setFont(u8g_font_7x13);
u8g.drawStr( 0, 20, "Hello world!");
}
void setup(void) {
Wire.pins(4, 5);
u8g.setColorIndex(1); // white
}
void loop(void) {
// picture loop
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );
// rebuild the picture after some delay
delay(1000);
}
Thank you for the help.
I' m from France , sorry for my bad English.
I'm trying to make a basic thing. Just connect ESP8266-12F + 0.91" 128x32 I2C OLED LCD
Connections :
Gnd > Gnd
Vcc > 3.3 v
SDA > Gpio4 pull-up resistor 4.7k to 3.3 v
SCL > Gpio5 pull-up resistor 4.7k to 3.3 v
The LCD don't show any text, no light.
This is the code I use :
/*OLED 0.91" Blue 128X32 I2C IIC Display Module UK Tested
onboard SSD1106 display driver is U8GLIB compatible
SSD1306 Graphics Drive IC - Only 4 connections GND VCC SCL SDA
Suitable for Arduino, PIC, MSP430, STM32, ESP8266, Raspberry Pi projects
These displays are Tiny!! Only ??mm x ??mm x ?.?mm
Ultra Low Power as with OLED there is no backlight required
Runs on 3.3V or 5V with no level shifters required.
This display is fully supported by the u8glib library
so is easily used on Arduino or ESP8266
In the u8glib driver, simply uncomment this line
to select the correct driver:
U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NO_ACK);
Also Works with the Adafruit SSD1306 + GFX Library
just change i2c address in 128x32 demo from 0x3D to 0x3C
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
*/
#include "Wire.h"
#include "U8glib.h"
U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NO_ACK);
void draw() {
// graphic commands to redraw the complete screen should be placed here
u8g.setFont(u8g_font_7x13);
u8g.drawStr( 0, 20, "Hello world!");
}
void setup(void) {
Wire.pins(4, 5);
u8g.setColorIndex(1); // white
}
void loop(void) {
// picture loop
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );
// rebuild the picture after some delay
delay(1000);
}
Thank you for the help.