Browse Source
* Refactor Kyria into separate left/right "revisions" of the Kyria shield, and include central kyria.dtsi file with common definition. * Fixes for keymaps to work fully with matrix transforms that override effective rows/columns. * Add ability for matrix transform to do row/col offsets, which is needed for split keyboards.xmkb
Pete Johanson
4 years ago
11 changed files with 98 additions and 72 deletions
@ -1,5 +1,8 @@
@@ -1,5 +1,8 @@
|
||||
# Copyright (c) 2020 Pete Johanson |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_KYRIA |
||||
def_bool $(shields_list_contains,kyria) |
||||
config SHIELD_KYRIA_LEFT |
||||
def_bool $(shields_list_contains,kyria_left) |
||||
|
||||
config SHIELD_KYRIA_RIGHT |
||||
def_bool $(shields_list_contains,kyria_right) |
||||
|
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "kyria.dtsi" |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_a 3 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 2 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 10 GPIO_ACTIVE_HIGH> |
||||
; |
||||
}; |
||||
|
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "kyria.dtsi" |
||||
|
||||
&default_transform { |
||||
col-offset = <8>; |
||||
}; |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_d 10 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 2 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 3 GPIO_ACTIVE_HIGH> |
||||
; |
||||
}; |
||||
|
Loading…
Reference in new issue