OLEDs

Introduction

Library - Bitbank

In the example code, you will need to set the size of your display and the pins used for the I2C connections for SDA and SCL. There is also a control for rotating the screen.

Main Library Repository
Library Wiki

  • Supports any number of simultaneous displays of any type (mix and match)

  • Optionally detect the display address and type (I2C only)

  • Supports 72x40, 96x16, 64x32, 128x32, 128x64, 128x128 (SH1107) and 132x64 (SH1106) display sizes

  • Drive displays from I2C, SPI or any 2 GPIO pins (virtual I2C)

  • 5 sizes of fixed fonts (6x8, 8x8, 12x16, 16x16, 16x32)

  • Deferred rendering allows preparing a back buffer, then displaying it (usually faster)

  • Text scrolling features (vertical and horizontal)

  • Text cursor position with optional line wrap

  • a function to load a Windows BMP file

  • Pixel drawing on SH1106/7 without needing backing RAM

  • Optimized Bresenham line drawing

  • Optimized Bresenham outline and filled ellipse drawing

  • Optimized outline and filled rectangle drawing

  • Optional backing RAM for drawing pixels for systems with enough RAM

  • 16x16 Tile/Sprite drawing at any angle.

  • Run full frame animations at high frame rates with a simple API

  • Light enough to run on an ATtiny85

Example

Demonstrates basic functionality and compared buffered / non-buffered write speeds

Last updated

Was this helpful?