{"id":50509724,"url":"https://github.com/dmatking/esp32-t4-demos","last_synced_at":"2026-06-16T15:02:43.977Z","repository":{"id":346871986,"uuid":"1191979971","full_name":"dmatking/esp32-t4-demos","owner":"dmatking","description":"Animated graphics demos for LilyGo T4-S3 2.41 AMOLED","archived":false,"fork":false,"pushed_at":"2026-04-05T17:00:52.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T19:12:32.568Z","etag":null,"topics":["amoled","embedded","esp-idf","esp32","esp32-s3","freertos","graphics","lilygo"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmatking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-25T19:18:49.000Z","updated_at":"2026-04-05T17:00:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dmatking/esp32-t4-demos","commit_stats":null,"previous_names":["dmatking/t4-demos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmatking/esp32-t4-demos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmatking%2Fesp32-t4-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmatking%2Fesp32-t4-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmatking%2Fesp32-t4-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmatking%2Fesp32-t4-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmatking","download_url":"https://codeload.github.com/dmatking/esp32-t4-demos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmatking%2Fesp32-t4-demos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amoled","embedded","esp-idf","esp32","esp32-s3","freertos","graphics","lilygo"],"created_at":"2026-06-02T19:01:13.629Z","updated_at":"2026-06-16T15:02:43.972Z","avatar_url":"https://github.com/dmatking.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp32-t4-demos\n\nAnimated graphics demos for the LilyGo T4-S3 2.41\" AMOLED display.\n\n## Hardware\n\n- **Board:** [LilyGo T4-S3 2.41\" AMOLED](https://www.lilygo.cc/products/t4-s3) (ESP32-S3, 16MB flash, 8MB OPI PSRAM)\n- **Display:** 2.41\" AMOLED, 450x600, ~310 DPI, RM690B0 controller\n- **Interface:** QSPI over SPI3 at 36 MHz\n- **Color:** RGB565 (16-bit, byte-swapped on wire)\n\n## Demos\n\nFour animated demos cycle every 30 seconds:\n\n1. **Mandelbrot zoom** — dives into three fractal locations, resets at float32 precision limit\n2. **Plasma** — classic sine-wave interference with shifting palette (integer LUT-based)\n3. **Rainbow** — rotating hue sweep with diagonal wave ripple\n4. **Starfield** — 600 stars flying toward camera over nebula clouds with motion trails\n\nAll rendering uses a full-frame PSRAM framebuffer (450x600x2 = ~527 KB) pushed in a single `display_push_colors` call. Animations use precomputed sin and hue lookup tables for speed.\n\n## Building\n\nRequires [ESP-IDF v5.5](https://docs.espressif.com/projects/esp-idf/en/v5.5.1/esp32s3/get-started/).\n\n```bash\nidf.py set-target esp32s3   # first time only\nidf.py build flash monitor\n```\n\n## Project structure\n\n```\n├── main/main.c                  # Demo code\n├── components/amoled/           # Vendor QSPI display driver (MIT, Lewis He)\n│   ├── amoled_driver.c/h        # SPI bus, pixel push, window management\n│   ├── initSequence.c/h         # RM690B0 register init sequence\n│   └── product_pins.h           # GPIO definitions\n├── sdkconfig.defaults           # PSRAM, 16MB flash, 240MHz, USB JTAG\n└── CMakeLists.txt\n```\n\n## Display notes\n\nThe vendor defines `AMOLED_WIDTH=600` (physical height) and `AMOLED_HEIGHT=450` (physical width). Use `W = amoled_height()` for columns and `H = amoled_width()` for rows. The column offset (+16) is handled automatically by the driver via `CONFIG_LILYGO_T4_S3_241`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmatking%2Fesp32-t4-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmatking%2Fesp32-t4-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmatking%2Fesp32-t4-demos/lists"}