Posts

Showing posts from April, 2025

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

CircuitPython BLU UART on Seeed Studio XIAO nRF52840/ESP32S3 Sense, connect to Raspberry Pi as Serial Console.

Image
Implement CircuitPython BLU UART on Seeed Studio XIAO nRF52840 Sense / XIAO ESP32S3 Sense running CircuitPython 9.2.7. Library needed: ~ adafruit_ble To install adafruit_ble on CircuitPython device using circup: circup install adafruit_ble Read " Install and using CircUp (CircuitPython library updater) to install CircuitPython libraries " for more about CircUp. Code: cpy_ble_uart.py """ Circuitpython 9.2.7 BLE exercise Run on XIAO nRF52840 Sense/ESP32S3 Sense Act as bridge between BLE UART and UART To make it run as standalone (without REPL connection), copy to CircuitPython device, name "code.py". """ import os, sys import time import board, busio import digitalio from adafruit_ble import BLERadio from adafruit_ble.advertising.standard import ProvideServicesAdvertisement from adafruit_ble.services.nordic import UARTService #------------------------ print("========================================...