diff --git a/boards/shields/hotdog_pad/hotdog_pad-layouts.dtsi b/boards/shields/hotdog_pad/hotdog_pad-layouts.dtsi index a1632b2..ed2d93f 100644 --- a/boards/shields/hotdog_pad/hotdog_pad-layouts.dtsi +++ b/boards/shields/hotdog_pad/hotdog_pad-layouts.dtsi @@ -1,16 +1,16 @@ -#include +#include / { -physical_layout0: physical_layout_0 { - compatible = "zmk,physical-layout"; - display-name = "Default"; - - keys - = <&key_physical_attrs 100 100 0 0 0 0 0> - , <&key_physical_attrs 100 100 100 0 0 0 0> - , <&key_physical_attrs 100 100 200 0 0 0 0> - , <&key_physical_attrs 100 100 300 0 0 0 0> - , <&key_physical_attrs 100 100 400 0 0 0 0> - ; - }; + physical_layout0: physical_layout_0 { + compatible = "zmk,physical-layout"; + display-name = "Default"; + + keys + = <&key_physical_attrs 100 100 0 0 0 0 0> + , <&key_physical_attrs 100 100 100 0 0 0 0> + , <&key_physical_attrs 100 100 200 0 0 0 0> + , <&key_physical_attrs 100 100 300 0 0 0 0> + , <&key_physical_attrs 100 100 400 0 0 0 0> + ; + }; }; diff --git a/boards/shields/hotdog_pad/hotdog_pad.keymap b/boards/shields/hotdog_pad/hotdog_pad.keymap index a9eaeec..60d9f3e 100644 --- a/boards/shields/hotdog_pad/hotdog_pad.keymap +++ b/boards/shields/hotdog_pad/hotdog_pad.keymap @@ -2,28 +2,28 @@ #include / { - keymap { - compatible = "zmk,keymap"; - - base { - display-name = "Base"; - bindings = < - &kp N1 - &kp N2 - &kp N3 - &kp N4 - &kp C_MUTE - >; - - sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>; - }; - - extra1 { - status = "reserved"; - }; - - extra2 { - status = "reserved"; - }; - }; + keymap { + compatible = "zmk,keymap"; + + base { + display-name = "Base"; + bindings = < + &kp N1 + &kp N2 + &kp N3 + &kp N4 + &kp C_MUTE + >; + + sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>; + }; + + extra1 { + status = "reserved"; + }; + + extra2 { + status = "reserved"; + }; + }; }; diff --git a/boards/shields/hotdog_pad/hotdog_pad.overlay b/boards/shields/hotdog_pad/hotdog_pad.overlay index 7b66c3a..b0576ed 100644 --- a/boards/shields/hotdog_pad/hotdog_pad.overlay +++ b/boards/shields/hotdog_pad/hotdog_pad.overlay @@ -1,39 +1,40 @@ /* - * Copyright (c) 2024 Stephen Onnen - * - * SPDX-License-Identifier: MIT - */ +* Copyright (c) 2024 Stephen Onnen +* +* SPDX-License-Identifier: MIT +*/ -/ { - chosen { - zmk,kscan = &kscan0; - zmk,physical-layout = &physical_layout0; - }; - - kscan0: kscan_0 { - compatible = "zmk,kscan-gpio-direct"; - - input-gpios - = <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> - , <&xiao_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> - , <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> - , <&xiao_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> - , <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> - ; - }; - - encoder: encoder { - compatible = "alps,ec11"; - a-gpios = <&xiao_d 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; - b-gpios = <&xiao_d 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; - steps = <80>; - status = "okay"; - }; - - sensors: sensors { - compatible = "zmk,keymap-sensors"; - sensors = <&encoder>; - triggers-per-rotation = <20>; - }; +#include +/ { + chosen { + zmk,kscan = &kscan0; + zmk,physical-layout = &physical_layout0; + }; + + kscan0: kscan_0 { + compatible = "zmk,kscan-gpio-direct"; + + input-gpios + = <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&xiao_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&xiao_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + ; + }; + + encoder: encoder { + compatible = "alps,ec11"; + a-gpios = <&xiao_d 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + b-gpios = <&xiao_d 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + steps = <80>; + status = "okay"; + }; + + sensors: sensors { + compatible = "zmk,keymap-sensors"; + sensors = <&encoder>; + triggers-per-rotation = <20>; + }; }; \ No newline at end of file