bitbank2 / ssd1327

SSD1327 and SSD1322 OLED display library for Arduino+Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BitBank SSD1327+SSD1322 OLED library
Project started 6/10/2019
Copyright (c) 2019 BitBank Software, Inc.
Written by Larry Bank
bitbank@pobox.com

SSD1327
The purpose of this code is to easily control SSD1327 and SSD1322 OLED displays. For now, The code assumes that the SSD1327 is 128x128x4-bpp and SSD1322 is 256x64x4-bpp. Until I get other displays to test, these are the only sizes which will work with this code.
The code supports driving either display with SPI, I2C and bit bang connections using any 2 GPIO pins. Instead of adding support for these displays to a more generalized library, I chose to create stand alone code that could be as small as possible since the 4-bit gray pixels need to be managed differently than the 1-bit pixels of bitonal OLEDs and the 16-bit pixels of color LCDs.

This code makes use of my BitBang_I2C library and it must be installed as well.
https://github.com/bitbank2/BitBang_I2C

Features:
---------

  • 3 sizes of fixed fonts (6x8, 8x8, 16x16) with background and foreground color
  • Optional 8K RAM backing buffer for more advanced features
  • Native line, rectangle and ellipse functions (optionally filled)
  • Contrast (aka brightness) control
  • Set display inverted or flipped 180 degrees
  • Draw text with any foreground or background 'color'
  • Draw transparent text which doesn't overwrite the background (backing RAM required)
  • Rotate and draw bitmaps and transparent patterns
  • Light enough to run on an ATtiny85

If you find this code useful, please consider buying me a cup of coffee

paypal

About

SSD1327 and SSD1322 OLED display library for Arduino+Linux


Languages

Language:C++ 93.0%Language:C 6.4%Language:Makefile 0.6%