{"id":29496776,"url":"https://github.com/sudodevinci/esp32animator","last_synced_at":"2026-05-15T18:33:07.244Z","repository":{"id":303845493,"uuid":"954691305","full_name":"sudoDeVinci/ESP32Animator","owner":"sudoDeVinci","description":"A small footprint, memory efficient, multicore render system for the ESP32.","archived":false,"fork":false,"pushed_at":"2025-07-31T00:06:25.000Z","size":479,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-31T03:06:20.767Z","etag":null,"topics":["animation","esp32","esp32s3","led-strips","matrix","neopixel","rendering","ws1228b"],"latest_commit_sha":null,"homepage":"https://devinci.space","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sudoDeVinci.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}},"created_at":"2025-03-25T13:23:10.000Z","updated_at":"2025-07-31T00:06:28.000Z","dependencies_parsed_at":"2025-07-10T02:12:09.186Z","dependency_job_id":"7b71eb68-dc71-407e-b7b7-db9128045e85","html_url":"https://github.com/sudoDeVinci/ESP32Animator","commit_stats":null,"previous_names":["sudodevinci/esp32animator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sudoDeVinci/ESP32Animator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudoDeVinci%2FESP32Animator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudoDeVinci%2FESP32Animator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudoDeVinci%2FESP32Animator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudoDeVinci%2FESP32Animator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudoDeVinci","download_url":"https://codeload.github.com/sudoDeVinci/ESP32Animator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudoDeVinci%2FESP32Animator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013463,"owners_count":26085274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":["animation","esp32","esp32s3","led-strips","matrix","neopixel","rendering","ws1228b"],"created_at":"2025-07-15T19:01:05.770Z","updated_at":"2026-05-15T18:33:07.237Z","avatar_url":"https://github.com/sudoDeVinci.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Compile](https://github.com/sudoDeVinci/ESP32Animator/actions/workflows/compile.yml/badge.svg?branch=main)](https://github.com/sudoDeVinci/ESP32Animator/actions/workflows/compile.yml)\n\n# ESP32Animator\n\n\u003e **Dual-core LED animation engine for ESP32 microcontrollers**\n\nA thread-safe renderer designed to use NeoPixel LED strips. Built to leverage the ESP32's dual-core architecture for smooth animations while keeping your main application responsive.\n\n## Features\n\n### Dual-Core Architecture\n- Dedicated render core for pixel-perfect timing\n- Thread-safe Non-blocking animations that won't freeze your UI\n\n### Developer-Focused\n- RAII compliant\n- Prioritizes using modern STL containers \n- Extensible design for custom animation types\n\n## Architecture\n\n```\n┌─────────────────┐    ┌─────────────────┐\n│   Core 0        │    │   Core 1        │\n│                 │    │                 │\n│ • Main App      │    │ • Render Task   │\n│ • User Input    │    │ • LED Updates   │\n│ • Sensors       │    │ • Timing        │\n│ • Communication │    │ • Frame Buffer  │\n└─────────────────┘    └─────────────────┘\n```\n\nThe rendering engine runs on a dedicated core, ensuring your animations stay smooth even when your main application is busy processing sensors, handling user input, or managing network communications.\n\n## Quick Start\n\n### Basic Setup\n```cpp\n#include \"render.h\"\n\n// Create renderer with 10 LEDs on pin 42\nRenderer renderer(10, 42);\n\nvoid renderTask(void* parameters) {\n\tRenderState state = renderer.outputState();  \n\twhile (true) {\n\t\tdebugln(\"Render loopin!\");\n\t\tif (renderer.isRunning()) state = render(renderer);\t\n\t\tif (renderer.interruptableDelay((unsigned long)(state.frameDelayMs / state.speedCoefficient))) renderer.setEarlyExit(false);\n\t}\n}\n\nvoid setup() {\n    Serial.begin(115200);\n    while (!Serial) delay(10 / portTICK_PERIOD_MS);\n            ...\n\n    sdmmcInit();\n    fs::FS\u0026 fs = determineFileSystem();\n    FileWrapper root(fs, \"/\");\n    const std::string folder = \"animations\";\n    const FileWrapper\u0026 animationdir = root.getDir(folder);\n    const std::string animationfile = \"blink.json\";\n    const FileWrapper\u0026 animationJson = animationdir.getFile(animationfile);\n\n            ...\n\n    Animation animation = loadAnimation(fs, animationJson.getPath());\n\n    renderer.setLedCount(100);\n    renderer.setAnimation(animation);\n    renderer.setPeakBrightness(0.075f);\n    renderer.setframeDelayms(125);\n    renderer.setrepeatDelayms(2000);\n\n            ...\n\n    renderer.initializeScreen();\n    vTaskDelay(100 / portTICK_PERIOD_MS);\n    renderer.setRunning(true);\n\n            ...\n    \n    if (xTaskCreatePinnedToCore(\n        renderTask,                 // Function to run\n        RenderTask\",               // Task name\n        102400,                     // Stack size (bytes)\n        NULL,                       // Task parameters\n        2,                          // Priority (higher than default)\n        \u0026renderTaskHandle,          // Task handle;\n        1                           // Core to run on (dedicate core 1 to rendering)\n    ) != pdPASS) {\n        debugln(\"Failed to create render task!\");\n    }\n}\n\nvoid loop() {\n    vTaskDelay(1000000 / portTICK_PERIOD_MS);\n}\n```\n\n### Creating Animations\n```cpp\nAnimation myAnimation(\"rainbow_wave\");\n\nFrameBuffer frames;\nfor (int frame = 0; frame \u003c 30; frame++) {\n    Frame currentFrame;\n    for (int led = 0; led \u003c 10; led++) {\n        // Calculate rainbow colors based on frame and LED position\n        uint8_t hue = (frame * 8 + led * 25) % 255;\n        currentFrame.push_back(Pixel(led, r, g, b));\n    }\n    frames.push_back(currentFrame);\n}\n\nmyAnimation.setFrames(frames);\nrenderer.setAnimation(myAnimation);\n```\n\nOr, define Json files.\n\n```json\n{\n    \"metadata\": {\n        \"name\": \"blink\",\n        \"width\": 10,\n        \"height\": 10,\n        \"total_pixels\": 100,\n        \"frame_count\": 95,\n        \"format\": \"bgr\",\n        \"frame_delay_ms\": 100,\n        \"repeat_delay:ms\": 1000\n    },\n    \"frames\": [\n        [\n            [\n                31,\n                239,\n                183,\n                0\n            ],\n            [\n                32,\n                239,\n                183,\n                0\n            ],\n        ...\n        \n        ],\n\n        ...\n    \n    ]\n}\n```\n\nThen load them into Animation  objects\n\n```cpp\nfs::FS\u0026 fs = determineFileSystem();\nconst std::string filename = \"//animations/blink.json\";\nAnimation animation = loadAnimation(fs, filename);\n```\n\n\n## Quick Reference\n\n### Renderer Control\n```cpp\n// Speed control (0.1x to 10x)\nrenderer.setSpeed(2.0f);              // 2x speed\n\n// Brightness control (0.0 to 1.0)\nrenderer.setPeakBrightness(0.8f);     // 80% brightness\n\n// Animation control\nrenderer.setRepeat(true);             // Loop animation\nrenderer.setRunning(false);           // Pause animation\n```\n\n### Animation Management\n```cpp\nAnimation anim(\"my_animation\");\n\n// Frame manipulation\nanim.setFrames(frameBuffer);\nsize_t count = anim.frameCount();\nFrameBuffer frames = anim.getFramesDeepCopy();\n\n// Thread-safe operations\nstd::string name = anim.getName();\nuint32_t hash = anim.getNameHash();   // Fast comparison\n```\n\n### Pixel Control\n```cpp\n// Individual pixel control\nPixel redPixel(0, 255, 0, 0);         // LED 0: Red\nrenderer.setPixelColor(redPixel);\n\n// Frame-based updates\nFrame frame = {\n    Pixel(0, 255, 0, 0),              // Red\n    Pixel(1, 0, 255, 0),              // Green  \n    Pixel(2, 0, 0, 255)               // Blue\n};\nrenderer.writeFrameToScreen(frame);\n```\n\n## Configuration\n\n### Hardware Setup\n- **ESP32** development board\n- **NeoPixel LED strip** (WS2812B/SK6812)\n- **Power supply** appropriate for your LED count\n- **Data pin** connection (default: pin 42 for ESP32S3)\n\n### Dependencies\n- **Adafruit NeoPixel Library**\n- **ESP32 Arduino Core**\n- **FreeRTOS** (included with ESP32 core)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudodevinci%2Fesp32animator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudodevinci%2Fesp32animator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudodevinci%2Fesp32animator/lists"}