Docs menu

Native Components

Sensor Tile

A semantic tile for one live engineering measurement. PROVEN on the current ESP32-P4 evidence ledger.

#2 — Sensor Tile

Sensor Tile in the implemented ForgeUI Native Component library.

A semantic tile for one live engineering measurement.

  • Equipment monitoring
  • Environmental sensing
  • Machine telemetry
  • Energy systems

Inspector capabilities and presentation

  • Ten supplied sensor types plus Generic
  • Value, decimals, units and measurement range
  • Warning and critical thresholds with automatic colour
  • Trend, timestamp and optional root click

The component remains one serialized Canvas object. Browser Preview, Live Studio and Standalone Export consume its normalized semantic model while internal LVGL composition stays private.

Generated Runtime SDK family

c
FG_Set_<SensorTile>_Value(float value);
FG_Set_<SensorTile>_Units(const char * units);
FG_Set_<SensorTile>_Status(const char * text, uint32_t rgb);
FG_Set_<SensorTile>_Trend(int32_t trend);
FG_Set_<SensorTile>_Timestamp(const char * timestamp);
FG_Set_<SensorTile>_Colour(uint32_t rgb);

Interaction and UserEvents

c
void FG_On_<SensorTile>_Clicked(void);

The optional root hook represents a genuine tile click. Runtime setters never invoke it.

Where hooks exist, implement the exact declarations in 95_UserEvents.c. Runtime SDK calls never simulate user input.

Ownership boundary

ForgeUI owns semantic presentation, private LVGL composition, generated contracts, persisted identity, fixed storage and Browser/Live/Standalone alignment.

Browser, Live, Standalone and ESP32-P4 status

SurfaceStatus
Browser PreviewImplemented
Live StudioImplemented
Standalone ExportImplemented
Persisted identity and duplicate isolationImplemented
ESP32-P4PROVEN