# RK3588S demo resource

This directory contains the LVGL demo binary deployed on RK3588S devices by `install.sh`.

## Files

- `demo` — prebuilt LVGL UI binary installed to `/usr/bin/demo` on RK3588S boards

## Source

Current binary source on the build machine:

- `/home/sts/share/小屏demo开发指南/lvgl源码/lv_port_linux_v2/lv_port_linux/build/bin/demo`

## Purpose

This demo provides the small-screen UI used on RK3588S devices, including FIFO-based control through:

- `/tmp/lvgl_cmd`

Supported commands expected by the current clawd RK3588 LVGL backend include:

- `show_text:AP`
- `show_text:Conn`
- `show_text:Err0`
- `show_text:<PIN>`
- `show_time`

## Install behavior

During `install.sh`, if `/proc/device-tree/model` matches `RK3588S`, clawd will:

1. Back up existing `/usr/bin/demo` to `/usr/bin/demo.clawd-bak` if not already backed up
2. Install this `demo` binary to `/usr/bin/demo`

## Notes

- The binary is hardware-specific and intended for RK3588S boards.
- Replacing the binary should be done together with verification of `/tmp/lvgl_cmd` behavior and screen rendering.
