/ST7789-Generic

A generic st7789 spi device driver library with STM32G4 example usage

Primary LanguageCMIT LicenseMIT

ST7789 Generic Library

Generic ST7789 spi device driver library for a st7789 based display.

User Defined Callbacks

The user will be responsible for defining some library callbacks e.g. a delay function see: user_defined_callbacks.h for the most up to date reference

Makefile Adjustments

Using make you can either build via this repos makefile and import into your own project. Or you can build this library inside your projects.

You must make sure the TOOLSET make variable is consistent between this library and your project. make TOOLSET=msp430-elf- is an example on how to set the variable. By default it’s set to arm-none-eabi-. The gcc toolset is then appended to this variable e.g. gcc, gdb etc.

There are also options to set your CPU/FPU flags too via CPUFLAGS and FPUFLAGS. These must be set to override the STM32G4xx presets. Again, these are set in the same way as the TOOLSET example above.

Tools

The following tools are needed to build this project

  • make
  • gcc (for unit tests)

Submodules