cyberman54 / bb_spi_lcd

SPI LCD/OLED library which can be built for Arduino and Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bb_spi_lcd (BitBank SPI Color LCD/OLED library)
Project started 5/15/2017
Copyright (c) 2017-2019 BitBank Software, Inc.
Written by Larry Bank
bitbank@pobox.com

bb_spi_lcd
The purpose of this code is to easily control color OLED/LCD displays with a rich set of functions. The code can be built as both an Arduino and Linux library. For Arduino, there are a wide variety of target platforms and some don't have enough RAM to support every feature. Specifically, AVR (Uno/Nano/Mega) don't have enough RAM to have a back buffer. Without the back buffer, only text, pixel, rectangle and line drawing are possible. With a back buffer, a host of other functions become available such as ellipses, translucent/transparent rotating bitmaps, and transparent text.

Features:
---------

  • Supports the most popular display controllers (SSD1351, ST7735, ST7789, ILI9225, ILI9341, ILI9342, HX8357, ILI9468)
  • 5 built in font sizes (6x8, 8x8, 12x16, 16x16, 16x32)
  • Supports display modes: 0/90/180/270 degree rotated, inverted, BGR or RGB color order
  • Direct display drawing, backbuffer (RAM) drawing or both simultaneously
  • Display object structure (SPILCD) allows multiple simultaenous displays of different types to be controlled by a single MCU
  • Bit Bang option allows controlling SPI displays on any GPIO pins
  • Communication callback functions allows controlling parallel and custom connected displays
  • DMA on SAMD21, SAMD51 and ESP32 targets
  • Compiles on Arduino and Linux (e.g. Raspberry Pi)
  • Optimized primitives for text, lines, rectangles, ellipses and bitmap drawing
  • Fast (50x) drawing of Adafruit format custom fonts with optional blanking mode to erase old data without flickering
  • 50% scaled drawing of Adafruit_GFX fonts with antialiasing
  • Load and display 4, 8 and 16-bit Windows BMP files (including RLE)
  • Deferred rendering allows quickly preparing a back buffer, then displaying it
  • Callbacks allow working with non-SPI displays (e.g. 8/16-bit parallel)

If you find this code useful, please consider sending a donation to support my work

paypal

About

SPI LCD/OLED library which can be built for Arduino and Linux

License:GNU General Public License v3.0


Languages

Language:C++ 96.7%Language:C 3.2%Language:Makefile 0.1%