embello

Embedded software from JeeLabs

Embello Home Page
Hardware Documentation
Forth Library Documentation

SSD1306 OLED driver

This is an I2C driver for common 128x64 and 128x32 OLED display boards.

API

: lcd-init ( -- )  \ initialise the oled display
: show-logo ( -- )  \ show the JeeLabs logo
: clear ( -- )  \ clear display memory
: putpixel ( x y -- )  \ set a pixel in display memory
: display ( -- )  \ update the oled from display memory

Constants

The OLED.LARGE constant should be defined as “0” before including this driver, if you have a 128x32 display. Else the driver will assume 128x64.