Posts

Showing posts with the label Capacitive Touch FT6336U

LVGL on Raspberry Pi Pico 2 (Arduino framework/arduino-pico) with 320x480 TFT SPI ST7796 + FT6336U Capacitive Touch

Image
LVGL (Light and Versatile Graphics Library) is a popular free and open-source embedded graphics library to create beautiful UIs for any MCU, MPU and display type, supports working with the TFT_eSPI library. Following previous exercise " Raspberry Pi Pico 2 drive 4.0" 320x480 TFT SPI ST7796 with FT6336U Capacitive Touch + SD, in Arduino framework ", this exercise show steps to add LVGL on top of TFT_eSPI, on Raspberry Pi Pico 2. Install lvgl library in Arduino IDE's Library Manager. Using LVGL with Arduino requires some extra steps: Be sure to read the docs here: https://docs.lvgl.io/master/integration/framework/arduino.html Follow these configuration steps: - Go to the directory of the installed Arduino libraries - Go to lvgl and copy lv_conf_template.h as lv_conf.h into the Arduino Libraries directory next to the lvgl library folder. - Open lv_conf.h and change:   To enable the content of the file:   change the first #if 0 to #if 1   To use T...

Raspberry Pi Pico 2 drive 4.0" 320x480 TFT SPI ST7796 with FT6336U Capacitive Touch + SD, in Arduino framework

Image
Exercise of Raspberry Pi Pico 2 (in Arduino framework) to drive  4.0" 320x480 TFT SPI ST7796 with FT6336U Capacitive Touch + SD . The Raspberry Pi Pico 2 are programmed in Arduino framework using board of  Raspberry Pi Pico/RP2040/RP2350 by Earle F. Philhower, III (arduino-pico) , load bmp images from SD card, display on ST7796 using  TFT_eSPI , and touch screen to switching among images. Connection: ST7796 Module Raspberry Pi Pico 2 --------------------------------------- SD_CS GP15 CTP_INT not used CTP_SDA GP4 CTP_RST GP14 (optional, or 3V3) CTP_SCL GP5 SDO(MISO) GP16 LED GP22 SCK GP18 SDI(MOSI) GP19 LCD_RS GP21 LCD_RST GP20 LCD_CS GP17 GND GND VCC VBUS (5V) This ST7796 display module have on board level conversion circuit, compatible with 5V and 3.3V MCU. According LCDWiKi 4.0inch Capacitive SPI Module ST7796 , VCC is recommended to connect to 5V. When connected to 3.3V, the backlight brightness will be s...

my display module: 4.0" 320x480 TFT SPI ST7796 with FT6336U Capacitive Touch

Image
 4" 320*480 ST7796 SPI TFT with SD and FT6336U capacitive touch. ~ Product page:  4.0inch Capacitive SPI Module ST7796 Related Exercises: ~  Raspberry Pi Pico 2 drive 4.0" 320x480 TFT SPI ST7796 with FT6336U Capacitive Touch + SD, in Arduino framework . ~  LVGL on Raspberry Pi Pico 2 (Arduino framework/arduino-pico) with 320x480 TFT SPI ST7796 + FT6336U Capacitive Touch

ESP32S3/MicroPython display bmp on ili9341 LCD

Image
Last post introduced setup and basic of ESP32-S3-DevKitC-1 running MicroPython v1.24.1 using 3.2" 320x240 IPS LCD (ILI9341 SPI) with Cap. Touch (FT6336U) and Micro SD Slot . This post further exercise to load 240x240 RGB888/RGB565 bmp from device/SD, display on ILI9341 LCD. Remark for ESP32-S3-DevKitC-1: For ESP32-S3-DevKitC-1 with Octal SPI flash/PSRAM memory, use the "spiram-oct" variant such as ESP32_GENERIC_S3-SPIRAM_OCT-20241129-v1.24.1.bin (ref:  https://micropython.org/download/ESP32_GENERIC_S3/ ). If use a in-correct firmware such as ESP32_GENERIC_S3-20241129-v1.24.1.bin, "MemoryError: memory allocation failed" will be raised. For boards with Octal SPI flash/PSRAM memory embedded ESP32-S3-WROOM-1/1U modules, and boards with ESP32-S3-WROOM-2 modules, the pins GPIO35, GPIO36 and GPIO37 are used for the internal communication between ESP32-S3 and SPI flash/PSRAM memory, thus not available for external use. (ref:  https://docs.espressif.c...

ILI9341/FT6336U/SD on ESP32S3/MicroPython

Image
Exercise of MicroPython v1.24.1 running on  ESP32-S3-DevKitC-1 , display on  3.2" 320x240 IPS LCD (ILI9341 SPI) with Cap. Touch (FT6336U) and Micro SD Slot . In the exercises, all the three parts of the display module have been tested: ILI9341 SPI LCD, FT6336U cap. touch, and MicroSD card slot. Connection: ESP32-S3-DevKitC-1 ILI9341 SPI display module +-----USB--UART-----+ |GND           GND | GND |GND           5V0 | |IO19 IO14| LCD_CS |IO20 IO13| LCD_RST |IO21 IO12| LCD_RS |IO47 IO11| SDI(MOSI) |IO48 IO10| SCK |IO45 IO9 | LED |IO0 IO46| |IO35 IO3 | |IO36 IO8 | SDO(MISO) |IO37 IO18| SD_CS |IO38 IO17| |IO39 IO16| |IO40 IO15| |IO41 IO7 | CTP_SCL |IO42 IO6 | CTP_RST |IO2 IO5 | CTP_SDA |IO1 IO4 | CTP_INT |IO44 RST | |IO43 3V3 | |GND 3V3 | VCC +-------------------+ Libraries: In the exercise...