Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

31 lines (27 loc) · 1.43 KB

bb_hx1230 (BitBank HX1230 LCD library)
Project started 4/30/2018
Copyright (c) 2018-2019 BitBank Software, Inc.
Written by Larry Bank
bitbank@pobox.com

bb_hx1230
The purpose of this code is to easily control HX1230 / STE2007 LCD displays using a minimum of FLASH and RAM. The code assumes the display is connected via a 3-wire SPI interface. Since the hardware SPI doesn't support 3-wire, 9-bit mode, the data must be bit-banged on GPIO lines. The general case uses the wire library to bit bang the protocol. The default wire library is somewhat slow because of it's bounds checking. On ATtiny85 MCUs, I added a special case to directly access the I/O ports since there is only one data port (PORTB). If speed is an issue more than code size, my FastIO library can be used to speed up bit banging on all AVR MCUs.

Features:
---------

  • Drives the display from any 2 GPIO pins (clock + data) and optional RESET/CE/Backlight
  • 4 sizes of fixed fonts (6x8, 8x8, 16x16, 16x32)
  • a function to load a 96x68 Windows BMP file
  • Optional backing RAM for drawing pixels for systems with enough RAM
  • Light enough to run on an ATtiny85

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

paypal