Skip to content

piyopiyoex/hello_atomvm_tft_spi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Elixir/AtomVM demo for the Seeed XIAO-ESP32S3 that:

  • Initializes a 480×320 ILI9488 over SPI (RGB666 panel, RGB888 on wire)
  • Mounts an SD card (FAT), lists files, and blits the first *.RGB full-screen
  • Shows a lightweight HH:MM:SS overlay
  • Reads XPT2046/ADS7846 touch, draws a small cursor box, and prints a tiny x:y OSD


Wiring

Function XIAO-ESP32S3 pin → GPIO
SCLK D8 → GPIO7
MISO D9 → GPIO8
MOSI D10 → GPIO9
TFT CS GPIO43
Touch CS GPIO44
TFT D/C D2 → GPIO3
TFT RST D1 → GPIO2
SD CS D3 → GPIO4

Build & Flash

# Get deps & compile
mix deps.get

# Package BEAMs into an AVM (outputs _build/atomvm/main.avm)
mix atomvm.packbeam

# Flash to ESP32-S3 (adjust port if needed)
mix atomvm.esp32.flash --port /dev/ttyACM0 --baud 115200

.RGB images

  • Raw RGB888, no header, top-left origin.
  • Exact size: 480 × 320 × 3 = 460,800 bytes.
  • Place on the SD card root; fallback is priv/default.rgb.

About

ILI9488 + SD + Touch (AtomVM / XIAO-ESP32S3)

Topics

Resources

License

Stars

Watchers

Forks

Languages