Giter VIP home page Giter VIP logo

r61529-demo's Introduction

IPS LCD R61529 FT6236 Arduino eSPI Demo

This project is used to test the R61529 addition to the TFT-eSPI library. It uses Clion and Platformio, but it should be easy to convert it to another compiler. The excelent TFT-eSPI library does not contain support for the R61529 yet, but a Pull Request has been submited. The code can be found at https://github.com/jkvatne/TFT_eSPI Check out the R61529 branch into the lib/TFT_eSPI folder. This is done with the following commands:

cd lib
$ git clone https://github.com/jkvatne/TFT_eSPI.git
$ cd TFT_eSPI
$ git checkout remotes/origin/R61529

Board

The software has been tested on a custom board. It has a ESP32-S3-WROOM-1-N16R8 module connected to the R61529 based lcd panel as shown below. It works from 3.3V. The board has a 3.3V supply that has to be turned on by the CPU using pin 48. The background led can be controlled by pin 12. It has a USB connection via a CP2102N serial bridge.

LCD Panel

The LCD panel comes from Aliexpress), and is the version with LCD and Capacitive Touch. It usesthe FT6206 touch controller. Note that only 8-bit paralell mode is possible - no SPI.

Also note that the documentation for the strapping of the IM0, IM1, IM2 pins are wrong. Strap as shown here for Mode = 4 :MIPI DBI Type B 8 bits. Actually there is an IM3 pin that is wired low internaly.

  • IM2 = 3.3V
  • IM1 = 0V
  • IM0 = 0V

TFT panel connections

The following connections are used.

  • TFT_CS=38
  • TFT_DC=47
  • TFT_RST=37
  • TFT_WR=11
  • TFT_RD=10
  • TFT_D0=1
  • TFT_D1=2
  • TFT_D2=3
  • TFT_D3=4
  • TFT_D4=5
  • TFT_D5=6
  • TFT_D6=7
  • TFT_D7=8

Note that everything is defined in the platformio.ini file, and the UserSetup.h file is ignored (by setting the USER_SETUP_LOADED symbol in platformio.ini). In this way there is no need to modify files in the lib/TFT_eSPI folder.

Functionality

The program will display some text using two different fonts, and draw a small red rectangle where it detects a touch. Both portrait mode and landscape mode can be used by changing the ORIENTATION constant in platformio.ini.

r61529-demo's People

Contributors

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