Skip to content

Commit

Permalink
Clean up overaly
Browse files Browse the repository at this point in the history
  • Loading branch information
trankillity committed May 21, 2024
1 parent b0c2825 commit 81f56bd
Showing 1 changed file with 0 additions and 74 deletions.
74 changes: 0 additions & 74 deletions config/ffkb_v3.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,6 @@

#include <dt-bindings/zmk/matrix_transform.h>

/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
// for logging, remove later
zephyr,console = &cdc_acm_uart;
};

// Left encoder
encoder_1: encoder_1 {
compatible = "alps,ec11";
a-gpios = <&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
b-gpios = <&pro_micro 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
steps = <80>;
status = "okay";
};

// Right encoder
encoder_2: encoder_2 {
compatible = "alps,ec11";
a-gpios = <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
b-gpios = <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
steps = <80>;
status = "okay";
};

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";

col-gpios
= <&shift_reg 1 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 0 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 2 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 4 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 3 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 5 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 6 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 7 (GPIO_ACTIVE_HIGH)>
;

row-gpios
= <&pro_micro 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // row 0
, <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // row 1
, <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // row 2
, <&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // row 3
, <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // row 4
, <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // row 5
;
};

default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <8>;
rows = <6>;

map = <
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(4,3) RC(3,4) RC(4,5) RC(3,7)
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(3,2) RC(4,4) RC(3,5) RC(4,7)
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(4,2) RC(3,3) RC(3,6) RC(4,6)
RC(5,1) RC(5,3) RC(5,4) RC(5,5) RC(5,6) RC(5,7) RC(5,2) RC(5,0)
>;
};
};


// From Pete: https://discord.com/channels/719497620560543766/845285481888743434/1206181117296644106
&pro_micro_i2c {
status = "okay";
Expand All @@ -97,12 +31,4 @@
y-invert;
x-invert;
};
};

// for logging, remove later
&usbd {
status = "okay";
cdc_acm_uart: cdc_acm_uart {
compatible = "zephyr,cdc-acm-uart";
};
};

0 comments on commit 81f56bd

Please sign in to comment.