LIVE WEB PLAYER
Loading WebAssembly…See it respond.
The same raylib runtime, compiled to WebAssembly. Load this example, inject MQTT messages and watch its published events.
MQTT I/O
Waiting for runtime…
The browser requires a user action before the scene is loaded. Click Load demo scene first. MQTT is emulated and never leaves this page. Shaders are disabled in the web build; GPIO is hardware-only.
Raspberry Pi GPIO input/output using libgpiod. Available only in builds configured with ERGS_PLATFORM_RPI=ON.
Configuration
| Field | Description |
|---|---|
type | gpio |
pin | BCM GPIO number |
chip | gpiochip number, default 0 |
mode | input, input_pullup, or output |
invert | Invert physical/logical state |
initial | Initial output state |
on_press, on_release | Input-mode action chains |
Copy-and-paste JSON
{
"type": "gpio",
"id": "physical_choice_a",
"pin": 23,
"chip": 0,
"mode": "input_pullup",
"invert": true,
"on_press": "status_text.set('GPIO A')"
}Output example:
{
"type": "gpio",
"id": "status_lamp",
"pin": 18,
"mode": "output",
"initial": "OFF"
}MQTT
Published input state: ergs/rpi01/status/physical_choice_a ON
Set output: ergs/rpi01/update/status_lamp ON