Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/rgb animation refactor #2736

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
17 changes: 17 additions & 0 deletions app/boards/arm/glove80/glove80.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
chosen {
zmk,kscan = &kscan0;
zmk,physical-layout = &physical_layout0;
zmk,underglow-transform = &underglow_transform;
zephyr,code-partition = &code_partition;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
Expand All @@ -37,6 +38,22 @@
>;
};

underglow_transform: underglow_transform_0 {
compatible = "zmk,underglow-transform";
columns = <19>;
rows = <6>;
map = <
34 28 22 16 10 (-1) (-1) (-1) (-1) (-1) (-1) (-1) (-1) (-1) 50 56 62 68 74
35 29 23 17 11 6 (-1) (-1) (-1) (-1) (-1) (-1) (-1) 46 51 57 63 69 75
36 30 24 18 12 7 (-1) (-1) (-1) (-1) (-1) (-1) (-1) 47 52 58 64 70 76
37 31 25 19 13 8 (-1) (-1) (-1) (-1) (-1) (-1) (-1) 48 53 59 65 71 77
38 32 26 20 14 9 0 1 2 (-1) 42 41 40 49 54 60 66 72 78
39 33 27 21 15 3 4 5 (-1) (-1) (-1) 45 44 43 55 61 67 73 79
>;
};



kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
Expand Down
15 changes: 15 additions & 0 deletions app/dts/bindings/zmk,underglow-transform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: |
Defines a mapping from physical key positions to underglow pixel indexes, with (-1) values representing a key or space that doesn't have a corresponding LED.

compatible: "zmk,underglow-transform"

properties:
columns:
type: int
required: true
rows:
type: int
required: true
map:
type: array
required: true
Loading