2021-02-25 22:19:24 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021 Mike "KemoNine" Crosson
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/zmk/matrix_transform.h>
|
|
|
|
|
2022-05-01 18:09:47 +00:00
|
|
|
&pro_micro_i2c {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
oled: ssd1306@3c {
|
|
|
|
compatible = "solomon,ssd1306fb";
|
|
|
|
reg = <0x3c>;
|
|
|
|
label = "DISPLAY";
|
|
|
|
width = <128>;
|
|
|
|
height = <32>;
|
|
|
|
segment-offset = <0>;
|
|
|
|
page-offset = <0>;
|
|
|
|
display-offset = <0>;
|
|
|
|
multiplex-ratio = <31>;
|
|
|
|
segment-remap;
|
|
|
|
com-invdir;
|
|
|
|
com-sequential;
|
|
|
|
prechargep = <0x22>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-25 22:19:24 +00:00
|
|
|
/ {
|
|
|
|
chosen {
|
|
|
|
zmk,kscan = &kscan0;
|
2022-05-01 18:09:47 +00:00
|
|
|
zephyr,display = &oled;
|
2021-02-25 22:19:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
kscan0: kscan_0 {
|
|
|
|
compatible = "zmk,kscan-gpio-direct";
|
|
|
|
|
|
|
|
label = "KSCAN";
|
|
|
|
|
|
|
|
input-gpios
|
2021-03-29 00:07:13 +00:00
|
|
|
= <&pro_micro_a 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
, <&pro_micro_a 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
, <&pro_micro_a 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
, <&pro_micro_a 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
, <&pro_micro_d 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
, <&pro_micro_d 16 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
, <&pro_micro_d 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
, <&pro_micro_d 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
|
|
;
|
2021-02-25 22:19:24 +00:00
|
|
|
};
|
|
|
|
};
|