You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Button is a simple button device which has one LED attached to it. As status, it sends JSON with key `"pressed"` indicating whether button is pressed. As command, it expects JSON with key `"lit_up"` indicating the desired state of internal LED.
23
+
Button is a simple button device with one LED attached to it. As status, it sends JSON with key `"pressed"` indicating whether button is pressed. As command, it expects JSON with key `"lit_up"` indicating the desired state of internal LED.
24
24
25
25
### Usage
26
26
27
-
Fake buttons can be run with `run_buttons.py` script. It expects config in `yaml` format which specifies attributes for button or multiple buttons (see `buttons.yaml`):
27
+
Fake buttons can be run with the `run_buttons.py` script. It expects config in `yaml` format which specifies attributes for a button or multiple buttons (see `buttons.yaml`):
28
28
29
29
```yaml
30
30
- button1_name:
31
-
type: <int> specifying modulespecific device type (default is 0)
31
+
type: <int> specifying module-specific device type (default is 0)
Multiple fake buttons will be created according to yaml config. They will try to connect to specified server, generate and send their statuses periodically and set their LED states according to commands.
44
+
Multiple fake buttons will be created according to yaml config. They will try to connect to the specified server, generate and send their statuses periodically, and set their LED states according to commands.
45
45
46
-
> Manual mode of actual button pressing on keyboard can be specified by `--manual` argument.
46
+
> The manual mode of the actual button pressing on the keyboard can be specified by `--manual` argument.
0 commit comments