Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.73 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.73 KB

stm32_st7567a

Library for ST7567A based monochrome displays for STM32 MCUs. Based on STM32 HAL libraries.

Tested with EstarDyn 128x64 SPI LCD Display on WeAct STM32G431CoreBoard. (Ali)

Right now the library supports 4-wire SPI only.

Features

  • framebuffer-based
  • basic graphic primitives
    • point
    • horintal line (fast)
    • vertical line (fast)
  • variable-width fonts
  • power-save procedure
  • example project
    • build with Makefile or STM32CubeIDE

How-to

  • include the correct HAL header for your MCU (#L18)
  • initialize SPI with HAL and provide the handle name (#L37)
  • initialize GPIOs for the rest of the display pins with HAL and set port and pin assignments (CS, DC and RST) (#L27-L34)
  • include st7567a.h in your project

Fonts

The library supports variable-width fonts. Two free pixel fonts are included:

More fonts can be generated using BMFont and slightly patched bmfont2c.py script by Lars Ole Pontoppidan. Instructions to come!

to-do

  • Partial screen refresh
  • Arbitrary lines

Source