fd05478897
* Refactor common parts of the Microdox sheild into a separate file. This is in preparation for adding Microdox V2 as another shield in the same directory. * Refactor Microdox keymap into a common file in preparation for Microdox V2 * Add Microdox V2 shield definition * Added a README to explain v1/v2 differences.
33 lines
730 B
Plaintext
33 lines
730 B
Plaintext
/*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include "microdox.dtsi"
|
|
|
|
&default_transform {
|
|
col-offset = <5>;
|
|
};
|
|
|
|
&oled {
|
|
segment-remap;
|
|
com-invdir;
|
|
};
|
|
|
|
&kscan0 {
|
|
col-gpios
|
|
= <&pro_micro 14 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro 5 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro 6 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro 15 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro 21 GPIO_ACTIVE_HIGH>
|
|
;
|
|
row-gpios
|
|
= <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
, <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
, <&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
, <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
;
|
|
};
|