Eyes

Wiki

ES Configurator

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.

ProfileSizeGlobal RAM
Base1.28 MB77 KB
Studio1.31 MB77 KB
Visor1.31 MB77 KB
Animation1.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

FeatureValue
Clock1
Stopwatch2
Countdown4
Drawing8
Images and GIFs16
Joystick32
Momentary push button (GPIO5)4096
Live view64
Follow pointer128
Edit design from the web256
Home network512
Automatic expressions1024
Automatic blinks2048

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.

RouteUse
GET /api/stateSettings, network, features, profile, version and memory
GET /api/statusFPS, mode and memory
POST /api/studioDesign (edition, colors, size and more)
POST /api/studio/triggerBlink or expression
POST /api/studio/pausePause or resume
POST /api/contentEyes, clock, stopwatch, countdown, drawing or image
POST /api/hardwareDisplay count, CS and swap (restarts)
POST /api/wifiHome Wi-Fi and the Eyes access point
POST /api/updateFirmware update (firmware field, .bin file)
POST /api/reboot, POST /api/factoryRestart and factory reset