Skip to main content

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 previewUI simulatorDevice screen capture
Who uses itAI, with images shown in chatYou, using mouse input in the right panelAI and you
WhenWhile editing, before flashingWhile editing, before flashingAfter flashing
Device requiredNoNoA connected device with its serial port open
Supported projectsESP-IDF projects with LVGL, currently WonderLLMWonderLLM and supported ESP32-S3 Arduino examplesFirmware 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_cb or lv_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.