Compiling now for mcp23018 config, but still not reading matrix changes
This commit is contained in:
parent
3ae944d0a6
commit
7eb0b37de3
4 changed files with 13 additions and 8 deletions
|
@ -15,7 +15,7 @@
|
||||||
ext-power {
|
ext-power {
|
||||||
compatible = "zmk,ext-power-generic";
|
compatible = "zmk,ext-power-generic";
|
||||||
label = "EXT_POWER";
|
label = "EXT_POWER";
|
||||||
control-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
|
control-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
||||||
init-delay-ms = <50>;
|
init-delay-ms = <50>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,4 @@ endchoice
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
||||||
# Enable IO multiplexer
|
|
||||||
CONFIG_GPIO_MCP23017=y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
# Uncomment to turn on logging, and set ZMK logging to debug output
|
# Uncomment to turn on logging, and set ZMK logging to debug output
|
||||||
# CONFIG_ZMK_USB_LOGGING=y
|
CONFIG_ZMK_USB_LOGGING=y
|
||||||
|
|
||||||
# Uncomment both to enable encoder
|
# Uncomment both to enable encoder
|
||||||
CONFIG_EC11=y
|
CONFIG_EC11=y
|
||||||
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
|
# Enable i2c
|
||||||
|
CONFIG_I2C=y
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_ZMK_KSCAN_MATRIX_POLLING=y
|
||||||
|
CONFIG_GPIO_MCP23017=y
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
columns = <6>;
|
columns = <6>;
|
||||||
rows = <9>;
|
rows = <9>;
|
||||||
map = <
|
map = <
|
||||||
RC(0,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(5,5) RC(8,0) RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5)
|
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(8,0) RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5)
|
||||||
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(8,5) RC(8,1) RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(5,5)
|
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(8,5) RC(8,1) RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(5,5)
|
||||||
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(8,2) RC(6,0) RC(6,1) RC(6,2) RC(6,3) RC(6,4) RC(6,5)
|
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(8,2) RC(6,0) RC(6,1) RC(6,2) RC(6,3) RC(6,4) RC(6,5)
|
||||||
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(7,0) RC(7,1) RC(7,2) RC(7,3) RC(7,4) RC(7,5)
|
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(7,0) RC(7,1) RC(7,2) RC(7,3) RC(7,4) RC(7,5)
|
||||||
|
@ -74,8 +74,8 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
clock-frequency = <I2C_BITRATE_FAST>;
|
clock-frequency = <I2C_BITRATE_FAST>;
|
||||||
|
|
||||||
ext_gpio: mcp23017@20 {
|
ext_gpio: mcp230xx@20 {
|
||||||
compatible = "microchip,mcp23017";
|
compatible = "microchip,mcp230xx";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
reg = <0x20>;
|
reg = <0x20>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue