Giter Club home page Giter Club logo

rp2040-espi-lvgl's Introduction

A LVGL8 Demo based on RP2040

Chinese δΈ­ζ–‡

Structure

Hardware

Taobao CHINA purchase link. No body gives money for this ads. :)

Software

Performance

Performance

Settings

eSPI

; Platformio.ini

 -DILI9488_DRIVER=1
 -DTFT_WIDTH=480
 -DTFT_HEIGHT=320
 -DTFT_MOSI=11
 -DTFT_SCLK=10
 -DTFT_CS=9
 -DTFT_DC=8
 -DTFT_RST=12

As a PlatformIO project, most eSPI settings are defined on platformio.ini. Please check if you want to modify them.

NOTE: I use SPI channel 1 instead of channel 0, so I must write below in platformio.ini.

; Platformio.ini

-DTFT_SPI_PORT=1

XPT2046

Acorrding to the author's description, we just need define CS PIN for XPT2046 driver, and others PINS are automatically defined.

XPT2046

// main.cpp

#define CS_PIN 17

Then, we need connect the wires:

  • TOUCH_RX GP16
  • TOUCH_CS GP17(connect not in this photo)
  • TOUCH_SCK GP18
  • TOUCH_TX GP19

connect

Back lighting

We need set back lighting as a NONE-ZERO constant, or set int between 0 and 255. If you set nothing to it, you will see nothing display. As the demo, I set 150.

// main.cpp

#define TFT_BL 13
uint8_t TftBackground = 150;

rp2040-espi-lvgl's People

Contributors

cnkoala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.