59 lines
1.7 KiB
Markdown
59 lines
1.7 KiB
Markdown
|
List of [FURI](FURI) records for exchange data between applications.
|
||
|
|
||
|
# Interrupts
|
||
|
|
||
|
* `/irq/buttons` — raw button press/release events.
|
||
|
|
||
|
|Name|Type|Size|
|
||
|
|---|---|---|
|
||
|
|Button|0 — Up<br/>1 — Down<br/>2 — Right<br/>3 — Left<br/>4 — Ok<br/>5 — Back|1|
|
||
|
|State|1 — pressed<br/>0 — released|1|
|
||
|
|
||
|
* `/irq/charge` — charge state event
|
||
|
|
||
|
# UI
|
||
|
|
||
|
|Name|Type|Size|
|
||
|
|---|---|---|
|
||
|
|State|1 — charge start<br/>0 — charge stop|1|
|
||
|
|
||
|
* `/ui/fb` — pointer to current framebuffer
|
||
|
|
||
|
|Name|Type|Size|
|
||
|
|---|---|---|
|
||
|
|Framebuffer pointer|`uint8_t[DISPLAY_WIDTH][DISPAY_HEIGHT]`|4|
|
||
|
|
||
|
* `/ui/leds` — user led state
|
||
|
|
||
|
Led state is overrided by charge state (red when charging, green when charged).
|
||
|
|
||
|
|Name|Type|Size|
|
||
|
|---|---|---|
|
||
|
|Red|pwm value (0..255)|1|
|
||
|
|Green|pwm value (0..255)|1|
|
||
|
|Blue|pwm value (0..255)|1|
|
||
|
|Enable|1 — user led enabled<br/>0 — user led disabled (for manual led control)|1|
|
||
|
|
||
|
* `/ui/buttons_event` — button press/release events after debounce.
|
||
|
|
||
|
|Name|Type|Size|
|
||
|
|---|---|---|
|
||
|
|Button|0 — Up<br/>1 — Down<br/>2 — Right<br/>3 — Left<br/>4 — Ok<br/>5 — Back|1|
|
||
|
|State|1 — pressed<br/>0 — released|1|
|
||
|
|
||
|
* `/ui/buttons_state` — current button state after debounce.
|
||
|
|
||
|
|Name|Type|Size|
|
||
|
|---|---|---|
|
||
|
|Up|1 — pressed<br/>0 — released|1|
|
||
|
|Down|1 — pressed<br/>0 — released|1|
|
||
|
|Right|1 — pressed<br/>0 — released|1|
|
||
|
|Left|1 — pressed<br/>0 — released|1|
|
||
|
|Ok|1 — pressed<br/>0 — released|1|
|
||
|
|Back|1 — pressed<br/>0 — released|1|
|
||
|
|
||
|
* `/ui/fullscreen` — fullscreen mode state
|
||
|
|
||
|
|Name|Type|Size|
|
||
|
|---|---|---|
|
||
|
|State|1 — fullscreen<br/>0 — no fullscreen|1|
|