How it works
Firmware and profiles
Base, Studio, Visor and Animation use the same code with different profiles and enabled features. They share a partition table with two 1.5 MB application slots for Wi-Fi updates and 896 KB for settings, drawings and images. You can switch between them by uploading the BIN from the Eyes device page.
| Profile | Size | Global RAM |
|---|---|---|
| Base | 1.28 MB | 77 KB |
| Studio | 1.31 MB | 77 KB |
| Visor | 1.31 MB | 77 KB |
| Animation | 1.54 MB (includes 224 KB for animation) | 77 KB |
Arduino board: esp32:esp32:esp32c3:CDCOnBoot=cdc,PartitionScheme=min_spiffs, esp32 core 3.3.12.
The eyes
The ESP32 calculates each frame. Eye outlines and pupils use Bézier curves that deform with the eyelids, gaze and expressions. They are drawn directly on the display with anti-aliased edges. They use little space and stay sharp at any size.
Your settings inside the BIN
Each BIN reserves a 320-byte block for the defaults, including design, colors, displays, startup content, enabled features and optional Wi-Fi settings.
The configurator finds the block, writes your settings and recalculates the file checksums so the ESP32 can accept it. This happens inside the browser without compiling or uploading files.
At startup, Eyes copies new settings from the block. Reinstalling the same BIN keeps changes you later made from your phone.
Animation inside the BIN
The Animation BIN reserves 224 KB. For a whole category it stores several animations in sequence, preceded by a table and change interval. Eyes copies them into its storage and chooses them at random. The configurator converts GIFs to EYE2 and writes them into the reserved slot with a CRC. EYE2 uses an RGB565 palette with frame deltas or direct RGB565 pixels for photos and animations that need more colors. When Eyes detects a new animation at startup, it copies it to file storage, checks it and displays it.
Studio, Visor and Animation reserve a separate block for the intro. The configurator combines text and image on a 96 × 96 pixel canvas and the display shows it on startup.
On ESP32-S3, the Animation BIN uses an eyesmedia data partition starting at 0x510000. The EYM3 library holds a table of offsets and targets followed by EYE2 files. Eyes reads frames directly from flash, leaving separate space for Wi-Fi settings, drawings and device uploads.
In microSD mode, /eyes/library.idx holds an ESD1 index with display targets and the change interval. Each EYE2 animation is a separate file. In RGB565 mode, Eyes reads strips from the card before writing them to the display so the reader and display take turns on the SPI bus.
Optional features
| Feature | Value |
|---|---|
| Clock | 1 |
| Stopwatch | 2 |
| Countdown | 4 |
| Drawing | 8 |
| Images and GIFs | 16 |
| Joystick | 32 |
| Momentary push button (GPIO5) | 4096 |
| Live view | 64 |
| Follow pointer | 128 |
| Edit design from the web | 256 |
| Home network | 512 |
| Automatic expressions | 1024 |
| Automatic blinks | 2048 |
Settings also store the display SPI speed (20, 27, 40 or 80 MHz) and number of seconds between expressions (Visor) or per shape (Prism).
The sum of the feature values forms the feature mask. Disabled features disappear from the ESP32 web interface and the firmware rejects requests for them.
ESP32 API
Use these routes to control Eyes from another program. Requests that change state require the X-Eyes-Token header returned by /api/state.
| Route | Use |
|---|---|
GET /api/state | Settings, network, features, profile, version and memory |
GET /api/status | FPS, mode and memory |
POST /api/studio | Design (edition, colors, size and more) |
POST /api/studio/trigger | Blink or expression |
POST /api/studio/pause | Pause or resume |
POST /api/content | Eyes, clock, stopwatch, countdown, drawing or image |
POST /api/hardware | Display count, CS and swap (restarts) |
POST /api/wifi | Home Wi-Fi and the Eyes access point |
POST /api/update | Firmware update (firmware field, .bin file) |
POST /api/reboot, POST /api/factory | Restart and factory reset |