underglow-layer: use devicetree & clean up code
This commit is contained in:
parent
01d0749411
commit
6f9a411793
6 changed files with 154 additions and 120 deletions
15
app/dts/bindings/zmk,underglow-layer.yaml
Normal file
15
app/dts/bindings/zmk,underglow-layer.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
description: |
|
||||
Allows defining a rgbmap composed of multiple layers
|
||||
|
||||
compatible: "zmk,underglow-layer"
|
||||
|
||||
child-binding:
|
||||
description: "A layer to be used in a rgbmap"
|
||||
|
||||
properties:
|
||||
bindings:
|
||||
type: array
|
||||
required: true
|
||||
layer-id:
|
||||
type: int
|
||||
required: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue