2022-02-03 17:10:03 +11:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/zmk/matrix_transform.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
chosen {
|
2022-03-11 07:03:20 +11:00
|
|
|
zephyr,display = &oled;
|
2022-02-03 17:10:03 +11:00
|
|
|
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";
|
|
|
|
|
2022-03-11 07:03:20 +11:00
|
|
|
oled: ssd1306@3c {
|
2022-02-03 17:10:03 +11:00
|
|
|
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>;
|
|
|
|
};
|
|
|
|
};
|