feat(shields): Add physical layout for Lotus58 (#2753)

Added physical layout and studio support for Lotus58.
This commit is contained in:
Alex Rozhkov
2025-02-07 22:35:13 +03:00
committed by GitHub
parent 4b4a8a35f3
commit 424e53210e
3 changed files with 80 additions and 2 deletions

View File

@@ -6,17 +6,19 @@
#include <dt-bindings/zmk/matrix_transform.h>
#include "lotus58-layouts.dtsi"
/ {
chosen {
zephyr,display = &oled;
zmk,kscan = &kscan0;
zmk,matrix-transform = &default_transform;
zmk,physical-layout = &physical_layout0;
};
default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <16>;
rows = <4>;
rows = <5>;
// | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 | | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 |
// | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 | | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 |
// | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 | SW30 | | SW30 | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 |
@@ -68,6 +70,10 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7
};
};
&physical_layout0 {
transform = <&default_transform>;
};
&pro_micro_i2c {
status = "okay";