Skip to content
/ oled Public

Arduino library for OLED displays with the SSD1307 chip

Notifications You must be signed in to change notification settings

normbxl/oled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" 

About

Arduino library for OLED displays with the SSD1307 chip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published