/SSD1307-OLED

Arduino library for OLED displays with the SSD1307 chip

Primary LanguageC

oled brick library

Arduino library for OLED displays with the SSD1307 chip. So far it has been only tested with seeedstudios Electronic brick OLED 96x16 display.

Perhaps it works also with bigger displays incorporating the SSD1306.

The API is mostly compatible with the standard LCD-library commands, apart from some minor differences.

When initializing no pin-numbers are needed unlike the standard LCD library, because this works via I2C and has a fixed address.

#include "OLED.h"

OLED oled;
oled.begin();

oled.clear();
oled.setCursor(0, 0);
oled.print("Hello World");
oled.print(12.3456f, 2); // prints float 2-digit precision: 12.34

In case you get an error saying "Wire.h couldn't be found" just include the wire.h before the OLED.h.

#include <Wire.h>
#include "OLED.h"