Arduino Uno + LCD ST7796s SPI library

Hi, I bought an LCD ST7796S 4 "SPI with a touch and sd. I just can't find setting up libraries for working with a screen and arduino uno.
As I understand it, there are 3 libraries that should work with this screen:

  1. MCUFRIEND_kbv
    2.LCDWIKI_KBV
  2. UTFT

How to set up correctly?
Product link: https://aliexpress.ru/item/4001122632293.html?spm=a2g0s.9042311.0.0.5cdf33edCoKQuH&_ga=2.238069763.2043123860.1601057913-2030412460.1587679088

Hi, I bought an LCD ST7796S 4 "SPI with a touch and sd. I just can't find setting up libraries for working with a screen and arduino uno.
As I understand it, there are 3 libraries that should work with this screen:

  1. MCUFRIEND_kbv -No. MCUFRIEND_kbv is for Parallel TFTs
    2.LCDWIKI_KBV - Yes, LCDWIKI_SPI probably works.
  2. UTFT - No. UTFT has never supported ST7796 in any form

Note that the display in your link requires 3.3V logic. You must use level shifters with a Uno.

You can try GitHub - prenticedavid/Adafruit_ST7796S_kbv: Adafruit-style library for ST7796S SPI displays

David.

Can I talk about 3.3V logic in more detail?

I understand that the screen works from 5V

Look at the pcb.

U1 is AMS1117-3.3 voltage regulator
U2 is XPT2046 Touch Controller
Q1 is J3Y transistor to switch LED backlight
D1 is a diode. I don't know what for.

All the control signals require 3.3V logic.

U1 is fed with 5V and provides 3.3V for all the electronics i.e. TFT, SD, Touch

If you don't have 5V you can bypass U1 and feed 3.3V directly (by shorting J1 )

There is nothing complicated about level shifters.
If you don't understand then you should buy an Arduino Shield which already has level shifters and is "ready to plug in and go".

Life is much simpler with proper 3.3V boards like Zero, Due, ...
Everything works with straight wires.

David.