Skip to content

Commit

Permalink
feat(docs): Note devicetree limits re: macro bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Sep 2, 2023
1 parent 9f307ec commit cdc7b55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/behaviors/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ Macros use an internal queue to invoke each behavior in the bindings list when t

To prevent issues with longer macros, you can change the size of this queue via the `CONFIG_ZMK_BEHAVIORS_QUEUE_SIZE` setting in your configuration, [typically through your `.conf` file](../config/index.md). For example, `CONFIG_ZMK_BEHAVIORS_QUEUE_SIZE=512` would allow your macro to type about 256 characters.

Another limit worth noting is that the maximum number of bindings you can pass to a `bindings` field in the [Devicetree](../config/index.md#devicetree-files) is 256, which also constrains how many behaviors can be invoked by a macro.

## Parameterized Macros

Macros can also be "parameterized", allowing them to be bound in your keymap with unique values passed into them, e.g.:
Expand Down

0 comments on commit cdc7b55

Please sign in to comment.