How 78/micropixel works
MicroPixel is an embedded WebAssembly app platform: developers use the C++ SDK to build and run apps, while firmware hosts isolated Guests, provides system UI, and adapts app capabilities to board hardware. The graph follows that user-to-device workflow and retains the major graphics, storage, audio, and board-support branches documented or visible in the supplied evidence. Some firmware routing is not shown in the excerpts; those relationships are marked unverified rather than asserted as source-verified calls.
Main entry points: application.hpp C++ app SDK · application.cpp Guest application runtime · firmware_app.cpp Firmware app lifecycle · storage_service.cpp App storage service
Components 19
App development
- SDK manager
tools/manager/micropixel_manager.py - C++ app SDK
guest/sdk/application.hpp - Guest app
guest/apps/sdk-demo/pages/storage_demo.cpp
Guest runtime
- Guest ABI
guest/abi/micropixel_abi.h - Guest application runtime
guest/runtime/application.cpp - Service binding
guest/runtime/service_binding.hpp - Guest storage API
guest/runtime/storage.cpp
Host services
- Firmware app lifecycle
firmware/espressif/main/firmware_app.cpp - Device registry
firmware/espressif/main/device/device_registry.cpp - App storage service
firmware/espressif/main/runtime/services/storage_service.cpp - Block storage
firmware/espressif/main/device/contracts/block_storage.hpp
Graphics and display
- Graphics contract
firmware/espressif/main/device/contracts/graphics.hpp - Guest graphics engine
firmware/espressif/main/platform/lvgl/guest_graphics_engine.cpp - Display pipeline contract
firmware/espressif/main/platform/lvgl/display/display_pipeline.hpp
Board hardware
- Audio engine
firmware/espressif/main/platform/audio/audio_engine.cpp - Board implementations
firmware/espressif/main/platform/boards - SPI NAND storage
firmware/espressif/main/platform/storage/spi_nand_block_storage.cpp
Other components
- App developer
- Microcontroller device
Connections 22
- App developer → SDK manager: uses CLI
README.md - SDK manager → Guest app: runs app
README.md - App developer → C++ app SDK: uses SDK
README.md - Guest app → C++ app SDK: uses APIs
- C++ app SDK → Guest application runtime: runs handler
guest/runtime/application.cpp - Guest application runtime → Service binding: calls services
guest/runtime/application.cpp - C++ app SDK → Guest ABI: defines service interface
- Guest storage API → Service binding: calls service
guest/runtime/storage.cpp - Service binding → Guest ABI: encodes requests
guest/runtime/service_binding.hpp - Firmware app lifecycle → Guest application runtime: hosts isolated app
README.md - Firmware app lifecycle → Device registry: uses device registry
- Guest storage API → App storage service: requests storage
- App storage service → Guest ABI: implements service protocol
firmware/espressif/main/runtime/services/storage_service.cpp - App storage service → Block storage: uses storage capability
- Block storage → SPI NAND storage: implemented by
- Guest application runtime → Graphics contract: requests graphics
- Guest graphics engine → Graphics contract: implements contract
firmware/espressif/main/platform/lvgl/guest_graphics_engine.cpp - Guest graphics engine → Display pipeline contract: presents frames
- Display pipeline contract → Board implementations: board-specific transport
firmware/espressif/main/platform/boards/ksdiy-p4c5/display_pipeline.hpp - Audio engine → Board implementations: uses audio sink
firmware/espressif/main/platform/audio/audio_engine.cpp - Board implementations → Microcontroller device: drives hardware
README.md - Firmware app lifecycle → Microcontroller device: manages hardware
README.md