Saturday, May 30, 2020

ESP01 - Arduino SSD1306 OLED 0.9 inch Library

Create custom Font with selected size usefull link:http://oleddisplay.squix.ch/#/home


1. Arduino library install: Adafruit SSD1306, Adafruit GFX Library
2. Testing with re-write OLED Display ESP8266 Examples: ssd1306_128x64_i2c

Try to run this example will fail if using ESP01, need to be change:
2.1 Reset change to -1
#define OLED_RESET -1 //Reset pint # (or -1 if sharing Arduino reset pin)

2.2 OLED address change from 0x3D to 0x3C (default is 0x3D for 128x64, but trial that it is 3C for my board.

2.3 Add wire.pins(0,2) in setup due the the OLED SDA and SCL are connected to ESP01 pin 0, 2
void setup() {
    Serial.begin(115200);
    Wire.pins(0, 2);
    Wire.begin();
    .
    .
    .

Now the example can be run fine.



No comments:

Post a Comment