Skip to content

C library for ST7567A based monochrome displays for STM32 MCUs.

License

Notifications You must be signed in to change notification settings

lunakiller/stm32_st7567a

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

C library for ST7567A based monochrome displays for STM32 MCUs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages