ESP32 TFT with embedded SD MicroPython Integration

Замовник: AI | Опубліковано: 07.02.2026
Бюджет: 30 $

I have an ESP32 driving a 2.8-inch SPI ILI9341 TFT that contains an on-board SD slot. With the standard lcd and sdcard MicroPython drivers the display runs perfectly, but the SD card is invisible—both devices are competing on the same SPI bus and only the screen wins. What I need from you is a compact, clearly-commented MicroPython script (no touch support required) that: • Initialises the TFT and SD card on the ESP32, either by sharing one SPI instance with separate CS lines or by splitting them across VSPI/HSPI—whichever proves reliable. • Mounts the SD, lists a directory, and demonstrates a simple file read/write. • Updates the screen with any small graphic or text pulled from that SD file to prove both peripherals work concurrently. I have already swapped in different drivers and triple-checked wiring, so please focus on code-level fixes or minimal pin changes. Keep the solution self-contained—just the script plus any helper classes you create—so I can drop it straight into my existing project folder. A short note explaining pin assignments and why the conflict is resolved will complete the deliverable. If the code runs on a generic ESP32-WROOM with the lcd and sdcard libraries as shipped in current MicroPython, the task is done. Please note: the project has one milestone : complete TFT/SD card driver, this milestone will be released only if the I code is tested and working 100% used LCD data can be found here : https://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807