GithubHelp home page GithubHelp logo

st7789_for_wiringpi's Introduction

ST7789 for wiringPi

简介

https://github.com/Floyd-Fish/ST7789-STM32移植到wiringPi上的

附带一个bmp解码并显示的程序(写的很乱,没有参考价值,不过能用,建议老老实实取模,不会有问题)

配置

在‘’st7789.h‘’中配置SPI外设以及用到的RST,DC,CS等引脚

/* choose a Hardware SPI port to use. */
#define ST7789_SPI_CHANNAL  1           //配置要用的SPI外设
#define ST7789_SPI_PORT     0           //
#define ST7789_SPI_SPEED    900000000   //通信速率
/* If u need CS control, comment below*/
//#define CFG_NO_CS

/* Pin connection*/
#define ST7789_RST_PIN      16      //PC10
#define ST7789_DC_PIN       8       //PC8

#ifndef CFG_NO_CS
#define ST7789_CS_PIN       7       //PC5
#endif

编译

make

编译并运行

make run

st7789_for_wiringpi's People

Contributors

temperature6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hilam8899

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.