Screen interfaces
Preview an interface in the cloud, test it in the browser, and compare it with the device screen after flashing.
AI and you can inspect supported screen interfaces before and after flashing.
| AI preview | UI simulator | Device screen capture | |
|---|---|---|---|
| Who uses it | AI, with images shown in chat | You, using mouse input in the right panel | AI and you |
| When | While editing, before flashing | While editing, before flashing | After flashing |
| Device required | No | No | A connected device with its serial port open |
| Supported projects | ESP-IDF projects with LVGL, currently WonderLLM | WonderLLM and supported ESP32-S3 Arduino examples | Firmware with the capture component, currently WonderLLM |
AI preview
After editing an interface, AI can render it in a cloud simulator using the device project's LVGL version, fonts, and configuration. The resulting image appears in the chat.
AI can simulate a tap to inspect a button state or another page. Ask "Preview the interface" or "Tap Settings and show the next page." If text is clipped or controls overlap, describe the problem so AI can edit and preview again.
Previewing does not connect to or flash a device. Once the interface looks right, ask AI to compile the firmware and request flashing.
UI simulator
For supported projects, click UI simulator in the top bar. The panel compiles the interface and runs it in your browser. Click buttons, drag sliders, and switch pages with your mouse.
- For a product with multiple devices, such as MechDog AI, the simulator runs the interface of its screen-equipped WonderLLM module.
- When AI changes interface code, the panel indicates that an update is available. Recompile to load it.
- Reset restarts the interface from its startup state.
- Build errors show the file and line number. Send them to AI to fix.
- If the program stops responding, reset the simulator. The rest of the page remains usable.
The simulator runs the interface with mock hardware data from the project, including sensor readings and voice input. Capture the real device screen after flashing to check the actual result.
ESP32-S3 development board
These examples run the whole Arduino sketch in the simulator rather than a separate interface program.
- Choose the example in the panel. The most recently edited example is selected by default.
- ST7789 screen output, touch input, and serial printing are simulated. Serial output appears below the screen. Examples requiring other libraries, such as Wi-Fi, Bluetooth, camera, SD card, or sensors, cannot run. The panel names the unsupported dependency.
- Time is simulated, so
delay()does not wait in real time. - If the program does not supply an LVGL clock through
lv_tick_set_cborlv_tick_inc, the panel warns that only the first frame renders and touch does not respond. The same program also needs an LVGL clock on the board. - Use Rotate 180° if the screen orientation differs from your board. The browser remembers this setting locally.
Capture the device screen
After flashing, connect the device and open its serial port. AI can capture the display through the serial connection to inspect the real result.
The image appears in the chat and serial monitor. You can download it as a PNG from the panel or use the panel's screen-capture button yourself. Capturing reads the screen and does not require approval.
Screen capture requires the firmware's capture component. WonderLLM's base project includes it. If capture times out, check that the port is open, the device is running the new firmware, and the capture component is still present.