60 lines
1 KiB
Text
60 lines
1 KiB
Text
/*
|
|
* Copyright (c) 2022 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/matrix_transform.h>
|
|
|
|
/ {
|
|
chosen {
|
|
zephyr,display = &oled;
|
|
zmk,kscan = &kscan0;
|
|
zmk,matrix_transform = &default_transform;
|
|
};
|
|
|
|
kscan0: kscan {
|
|
compatible = "zmk,kscan-gpio-matrix";
|
|
label = "KSCAN";
|
|
|
|
diode-direction = "col2row";
|
|
};
|
|
|
|
left_encoder: encoder_left {
|
|
compatible = "alps,ec11";
|
|
label = "LEFT_ENCODER";
|
|
resolution = <4>;
|
|
status = "disabled";
|
|
};
|
|
|
|
right_encoder: encoder_right {
|
|
compatible = "alps,ec11";
|
|
label = "RIGHT_ENCODER";
|
|
resolution = <4>;
|
|
status = "disabled";
|
|
};
|
|
|
|
sensors {
|
|
compatible = "zmk,keymap-sensors";
|
|
sensors = <&left_encoder &right_encoder>;
|
|
};
|
|
|
|
// TODO: RGB node(s)
|
|
};
|
|
|
|
&pro_micro_i2c {
|
|
status = "okay";
|
|
|
|
oled: ssd1306@3c {
|
|
compatible = "solomon,ssd1306fb";
|
|
reg = <0x3c>;
|
|
label = "DISPLAY";
|
|
width = <128>;
|
|
height = <64>;
|
|
segment-offset = <0>;
|
|
page-offset = <0>;
|
|
display-offset = <0>;
|
|
multiplex-ratio = <63>;
|
|
prechargep = <0x22>;
|
|
};
|
|
};
|