Giter Site home page Giter Site logo

stm32-spi-st7789-tft's Introduction

刷图测试工程

基本介绍

主控芯片:STM32F407VGT6 屏幕驱动芯片:ST7789 屏幕分辨率:240x320 材质:ips 屏幕驱动方式:四线SPI方式(SDA,SCL,CS,DC)

屏幕引脚:

  • VCC
  • GND
  • SDA
  • SCL
  • CS
  • RES
  • DC
  • BLK

刷图测试

自测满屏刷一种颜色

方式 一帧耗时 帧率
GPIO模拟SPI 310ms 3.2fps
硬件SPI外设 188ms 5.3fps
硬件SPI外设+DMA发送 58.6ms 17fps

刷图方式选择

  • 打开GPIO模拟SPI:lcd_driver.c文件里面宏#define USE_HAL_SPI置为 0
  • 打开硬件SPI外设:lcd_driver.c文件里面宏#define USE_HAL_SPI置为 1

如何打开spi和DMA呢?

  • 先打开硬件SPI外设:lcd_driver.c文件里面宏#define USE_HAL_SPI置为 1
  • 再打开DMA:st7789_hal_spi.h文件里面宏#define USE_DMA_SPI置为 1

stm32-spi-st7789-tft's People

Contributors

liefyuan avatar

Stargazers

Xv avatar  avatar  avatar

Watchers

 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.