RUI Studio Help

Callback design

IDs and implementation code for Call callback; exported to TouchCallbacks.c.

Open Callback design. You define firmware callback IDs for “Call callback” on touch areas and buttons (ui_cb_id_t in RuiBuilder_UIMap.h). Firmware registers functions with ui_cb_register in main.c (follow the generated comments).

Three columns

ColumnRole
NameDropdown label on the property panel
ImplementationC snippet; click the cell to open the editor
RemarkFor you

Add / Delete / Up / Down / Auto arrange change the list. Order is the callback index — check controls after a shuffle.

Implementation editor

Presets: delay, stop the touch loop, login check, set RTC, UART-send a variable, jump page, and more. Save presets on this PC or in the project. OK checks for missing semicolons.

  • On re-export, an existing RuiBuilder_TouchCallbacks.c appends by default and only syncs non-empty implementations. Overwrite choices: Export code.
  • Effect demo runs a subset (loops, jump, login). Peripherals belong on hardware.

How to pick “Call callback”: Touch area. Overview: Variables and callbacks.