Posts

Showing posts from April, 2026

Downloading and Displaying JPG Images via WiFi on ESP32-C5 with ST7789 SPI TFT LCD

In this exercise, I demonstrate how to download a JPG image over Wi-Fi, decode it using the JPEGDEC library, and display it on a 3.2-inch 240×320 ST7789 TFT LCD (4-wire SPI) . The project uses the Arduino_GFX_Library together with the Waveshare ESP32-C5-WIFI6-KIT-N16R8 , running in the Arduino framework. Connection: 3.2" 240x320 ST7789 TFT LCD Waveshare (4-Wire SPI) ESP32-C5-WIFI6-KIT-N16R8 BL --------------------------- GPIO26 CS --------------------------- GPIO23 DC --------------------------- GPIO24 RES --------------------------- GPIO25 SDA --------------------------- GPIO8 SCL --------------------------- GPIO10 VCC --------------------------- 3V3 GND --------------------------- GND Libraries: Arduino_GFX_Library and  JPEGDEC libraries are needed to be installed in Arduino IDE Library Manager. Basic Test: ESP32C5_ST7789_SPI.ino /* Exercise run on Waveshare ESP32-C5-WIFI6-KIT-N16R8 Work with 3.2" 240x320 ST7789 SPI ht...

3.2" 240x320 ST7789 TFT LCD (4-Wire SPI/8-Bit Parallel/16-Bit Parallel)

Image
3.2" 240x320 ST7789 TFT LCD (4-Wire SPI/8-Bit Parallel/16-Bit Parallel) T320H8-C40-11

my dev.board: Waveshare ESP32-S3-Touch-AMOLED-2.16

Image
Waveshare ESP32-S3-Touch-AMOLED-2.16 Product Pages: ~ https://docs.waveshare.com/ESP32-S3-Touch-AMOLED-2.16 (English) ~ https://docs.waveshare.net/ESP32-S3-Touch-AMOLED-2.16 (Chinese) ~ https://github.com/waveshareteam/ESP32-S3-Touch-AMOLED-2.16/

ESP32-xx to use 16MB Flash with LittleFS.

Image
In my understanding: To use 16MB Flash with LittleFS, have to select Partition Scheme of 16M Flash (2MB APP/12.5MB FATFS) or 16M Flash (3MB APP/9.9MB FATFS). Tested on  Waveshare ESP32-C5-WIFI6-KIT-N16R8 . ESP32-xx_LittleLS_16M.ino /* Exercise on ESP32-xx to use 16MB Flash with LittleFS. In my understanding: To use 16MB Flash with LittleFS Have to select Partition Scheme of 16M Flash (2MB APP/12.5MB FATFS) or 16M Flash (3MB APP/9.9MB FATFS). But, if call simple LittleFS.begin(true), will fail. To use it, have to set partitionLabel to "ffat". In my test on Waveshare ESP32-C5-WIFI6-KIT-N16R8: With "16M Flash (2MB APP/12.5MB FATFS)": LittleFS.totalBytes: 12451840 bytes LittleFS.usedBytes: 8192 bytes With "16M Flash (3MB APP/9.9MB FATFS)": LittleFS.totalBytes: 10354688 bytes LittleFS.usedBytes: 8192 bytes */ #include <LittleFS.h> #include "esp_partition.h" void setup() { delay(2000); Serial.begin(115200); delay(10...

arduino-esp32 read memory info (tested on YD-ESP32-S3 N16R8/Waveshare ESP32-C5-WIFI6-KIT-N16R8)

Image
arduino-esp32 read memory info, tested on Waveshare ESP32-C5-WIFI6-KIT-N16R8 and YD-ESP32-S3 N16R8 . ESP32-xx_mem_info.ino /* Exercise run on Waveshare ESP32-xx - Memory info Tested on: VCC-GND Studio YD-ESP32-S3 N16R8 https://github.com/vcc-gnd/YD-ESP32-S3 16MB Flash, 8MB PSRAM WaveShare ESP32-C5-WIFI6-KIT-N16R8: https://www.waveshare.com/wiki/ESP32-C5-WIFI6-KIT-NXRX 16MB Flash, 8MB PSRAM */ #include <SPIFFS.h> void setup() { delay(2000); Serial.begin(115200); delay(1000); Serial.println("\n\n~ Start ~"); Serial.println("--- Memory Info ---"); Serial.println(); Serial.println("--- Model and Revision ---"); Serial.printf("Chip model: %s\n", ESP.getChipModel()); Serial.printf("Chip revision: %d\n", ESP.getChipRevision()); Serial.println(); Serial.println("--- SRAM (internal RAM) ---"); Serial.printf("Free heap: %d bytes\n", ESP.getFreeHeap()); Serial.printf("L...