diff --git a/app/boards/arm/pillbug/pillbug.dts b/app/boards/arm/pillbug/pillbug.dts index 37f3aac7..cbdb1062 100644 --- a/app/boards/arm/pillbug/pillbug.dts +++ b/app/boards/arm/pillbug/pillbug.dts @@ -15,7 +15,7 @@ ext-power { compatible = "zmk,ext-power-generic"; label = "EXT_POWER"; - control-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + control-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; init-delay-ms = <50>; }; diff --git a/app/boards/shields/sugarglider/Kconfig.defconfig b/app/boards/shields/sugarglider/Kconfig.defconfig index 39ef5b85..c4531daf 100644 --- a/app/boards/shields/sugarglider/Kconfig.defconfig +++ b/app/boards/shields/sugarglider/Kconfig.defconfig @@ -23,7 +23,4 @@ endchoice endif # LVGL -# Enable IO multiplexer -CONFIG_GPIO_MCP23017=y - endif diff --git a/app/boards/shields/sugarglider/sugarglider.conf b/app/boards/shields/sugarglider/sugarglider.conf index ccf77e61..21766236 100644 --- a/app/boards/shields/sugarglider/sugarglider.conf +++ b/app/boards/shields/sugarglider/sugarglider.conf @@ -1,6 +1,14 @@ # 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 CONFIG_EC11=y CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y + +# Enable i2c +CONFIG_I2C=y + + +CONFIG_ZMK_KSCAN_MATRIX_POLLING=y +CONFIG_GPIO_MCP23017=y + diff --git a/app/boards/shields/sugarglider/sugarglider.overlay b/app/boards/shields/sugarglider/sugarglider.overlay index 5e1bc47f..1c83e110 100644 --- a/app/boards/shields/sugarglider/sugarglider.overlay +++ b/app/boards/shields/sugarglider/sugarglider.overlay @@ -43,7 +43,7 @@ columns = <6>; rows = <9>; 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(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) @@ -74,8 +74,8 @@ status = "okay"; clock-frequency = ; - ext_gpio: mcp23017@20 { - compatible = "microchip,mcp23017"; + ext_gpio: mcp230xx@20 { + compatible = "microchip,mcp230xx"; status = "okay"; gpio-controller; reg = <0x20>;