Giter Club home page Giter Club logo

st7789-stm32's Introduction

ST7789-STM32

Using STM32's Hardware SPI to drive a ST7789 based IPS display.

Supported Displays

  • 135*240 resolution
  • 240*240 resolution

If you like, you could customize it's resolution to drive different displays you prefer.

For example, a 240x320 display is perfectly suited for st7789.
Just set all X_SHIFT and Y_SHIFT to 0, and set resolution to 240|320.

For more details, please refer to ST7789's datasheet.

How to use ?

Include st7789.h in main.c for a simple test, you could refer ST7789_Test() function in while(1).
Don't forget to refer ST7789_Init(); before you use any functions...

This code has been tested on 240x240 IPS screen. You can look into demo directory for details.

Test conditions:

  • STM32F103C8T6
  • Keil MDK5

Important

Some display won't work, you should consider adding a pull-up resistor on SCLK(SCK) and SDA(MOSI) pin.

The simplest way is to configure these 2 GPIO to Pull-up Mode manually in CubeMX(if supported) or in SPI initialization code.

Special thanks to

Reference

Contributor

st7789-stm32's People

Contributors

floyd-fish avatar jasonlrh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.