Skip to content

Commit

Permalink
HASPmota btnmatrix events
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored Jan 29, 2025
1 parent ddc287a commit 26ef602
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/HASPmota.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ HASPmota Class|Embedded LVGL class
`img`|`lv.img`
`dropdown`|`lv.dropdown`
`roller`|`lv.roller`
`btnmatrix`|`lv.btnmatrix`
`btnmatrix`|`lv.buttonmatrix`
`bar`|`lv.bar`
`scale`|`lv.scale`
`slider`|`lv.slider`
Expand Down Expand Up @@ -742,6 +742,19 @@ Attribute name|LVGL equivalent|Details
`text_color30`||Color of the inner text of each button


For `btnmatrix`, events generated contain an addtional suffix to indicate which button was pressed or released.

Example: `p9b11_0` means page `9`, object id `11`, button `0`

```
xx:xx:25.131 {'hasp': {'p9b11_0': {'event': 'changed'}}}
xx:xx:25.134 {'hasp': {'p9b11_0': {'event': 'down'}}}
xx:xx:25.520 {'hasp': {'p9b11_0': {'event': 'long'}}}
xx:xx:25.670 {'hasp': {'p9b11_0': {'event': 'changed'}}}
xx:xx:25.735 {'hasp': {'p9b11_0': {'event': 'release'}}}
xx:xx:25.737 {'hasp': {'p9b11_0': {'event': 'up'}}}
```

### `led`

Example:
Expand Down

0 comments on commit 26ef602

Please sign in to comment.