Introduction
Use JSON to describe an ESP-IDF interface and C to update it while the device runs.
How a progress bar reaches the screen
Section titled “How a progress bar reaches the screen”- The Hello World scene
defines a progress bar named
load. Its position, size and initial value belong in the scene. - During the ESP-IDF build, GSPC produces a Bundle containing the scene and its
assets, and C headers with typed access to
load. - Every 250 ms, the application timer
calls
gsp_hello_load_set_value(ui, state->load). The runtime redraws the changed area and submits it to the display target configured by the BSP.
Ownership boundaries
Section titled “Ownership boundaries”| Concern | Owner |
|---|---|
| Structure, appearance, static assets | Scene JSON |
| Validation, resource conversion, bundle/API generation | GSPC |
| Product state, networking, storage, sensors | Application tasks |
| Panel timing, rotation, buffers, touch mapping | BSP and ESP-LCD display target |
| Rendering, input dispatch, component state | ESP-GSP runtime |
For a touch control, declare a callback in the scene when the application needs
to handle an event. Use the generated setter to show the resulting value.
Choose a data interface
Section titled “Choose a data interface”Use Canvas for camera/video or another producer that owns continuously changing pixels. Use runtime image APIs for occasional encoded image replacement. Use List, Grid, Wheel or Message List for large application-owned collections rather than creating one authored object per data item.
Continue with Getting started or the Widget library. For measured frame rates and CPU use, see performance comparisons and benchmarks by chip and display.