Adjust pockettype setup
This commit is contained in:
parent
089047d1e3
commit
3d3ea42390
|
@ -4,6 +4,6 @@
|
||||||
if SHIELD_POCKETTYPE
|
if SHIELD_POCKETTYPE
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Pockettype!"
|
default "Pockettype"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
config SHIELD_POCKETTYPE
|
config SHIELD_POCKETTYPE
|
||||||
def_bool $(shields_list_contains,pockettype)
|
def_bool $(shields_list_contains,pockettype)
|
||||||
|
|
119
keyboards/zmk-config/config/boards/shields/pockettype/pockettype.overlay
Executable file → Normal file
119
keyboards/zmk-config/config/boards/shields/pockettype/pockettype.overlay
Executable file → Normal file
|
@ -1,59 +1,60 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2020 The ZMK Contributors
|
* Copyright (c) 2020 The ZMK Contributors
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <dt-bindings/zmk/matrix-transform.h>
|
#include <dt-bindings/zmk/matrix-transform.h>
|
||||||
|
|
||||||
// TODO: LEDs
|
// TODO: LEDs
|
||||||
// pro micro A3
|
// pro micro A3
|
||||||
// pro micro A2
|
// pro micro A2
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
chosen {
|
kscan0: kscan {
|
||||||
zmk,kscan = &kscan0;
|
compatible = "zmk,kscan-gpio-matrix";
|
||||||
zmk,matrix_transform = &default_transform;
|
label = "KSCAN";
|
||||||
};
|
|
||||||
|
diode-direction = "col2row";
|
||||||
default_transform: keymap_transform_0 {
|
|
||||||
compatible = "zmk,matrix-transform";
|
col-gpios
|
||||||
columns = <12>;
|
= <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
rows = <4>;
|
, <&pro_micro_a 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
map = <
|
, <&pro_micro_d 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0)
|
, <&pro_micro_d 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0)
|
, <&pro_micro_d 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0)
|
, <&pro_micro_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0)
|
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
>;
|
, <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
};
|
, <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
kscan0: kscan_0 {
|
, <&pro_micro_d 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
compatible = "zmk,kscan-gpio-matrix";
|
;
|
||||||
label = "KSCAN";
|
|
||||||
diode-direction = "col2row";
|
row-gpios
|
||||||
|
= <&pro_micro_d 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
col-gpios
|
, <&pro_micro_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
= <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
, <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
, <&pro_micro_a 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
, <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
|
;
|
||||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
};
|
||||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro_d 10 GPIO_ACTIVE_HIGH>
|
default_transform: keymap_transform_0 {
|
||||||
, <&pro_micro_d 8 GPIO_ACTIVE_HIGH>
|
compatible = "zmk,matrix-transform";
|
||||||
, <&pro_micro_d 7 GPIO_ACTIVE_HIGH>
|
columns = <12>;
|
||||||
, <&pro_micro_d 5 GPIO_ACTIVE_HIGH>
|
rows = <4>;
|
||||||
, <&pro_micro_d 4 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro_d 3 GPIO_ACTIVE_HIGH>
|
map = <
|
||||||
, <&pro_micro_d 0 GPIO_ACTIVE_HIGH>
|
RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0) RC(0,0)
|
||||||
;
|
RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0) RC(1,0)
|
||||||
|
RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0) RC(2,0)
|
||||||
row-gpios
|
RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0) RC(3,0)
|
||||||
= <&pro_micro_d 1 GPIO_ACTIVE_HIGH>
|
>;
|
||||||
, <&pro_micro_d 2 GPIO_ACTIVE_HIGH>
|
};
|
||||||
, <&pro_micro_d 6 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro_d 9 GPIO_ACTIVE_HIGH>
|
chosen {
|
||||||
;
|
zmk,kscan = &kscan0;
|
||||||
};
|
zmk,matrix_transform = &default_transform;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
43
keyboards/zmk-config/config/pockettype.conf
Normal file
43
keyboards/zmk-config/config/pockettype.conf
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Number of BT Profiles
|
||||||
|
CONFIG_BT_MAX_CONN=6
|
||||||
|
|
||||||
|
# Set screen blanking to 15s instead of 30s
|
||||||
|
CONFIG_ZMK_IDLE_TIMEOUT=15000
|
||||||
|
|
||||||
|
# Save settings after 10s instaed of 60s
|
||||||
|
#CONFIG_ZMK_SETTINGS_SAVE_DEBOUNCE=10000
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Debugging
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# Turn on logging, and set ZMK logging to debug output
|
||||||
|
CONFIG_LOG=y
|
||||||
|
CONFIG_ZMK_LOG_LEVEL_DBG=y
|
||||||
|
|
||||||
|
# Turn on USB CDC ACM device
|
||||||
|
CONFIG_USB=y
|
||||||
|
CONFIG_USB_DEVICE_STACK=y
|
||||||
|
CONFIG_USB_CDC_ACM=y
|
||||||
|
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024
|
||||||
|
CONFIG_USB_CDC_ACM_DEVICE_NAME="CDC_ACM"
|
||||||
|
CONFIG_USB_CDC_ACM_DEVICE_COUNT=1
|
||||||
|
|
||||||
|
# Enable serial console
|
||||||
|
CONFIG_SERIAL=y
|
||||||
|
CONFIG_CONSOLE=y
|
||||||
|
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||||
|
CONFIG_UART_LINE_CTRL=y
|
||||||
|
|
||||||
|
# Enable USB UART, and set the console device
|
||||||
|
CONFIG_UART_CONSOLE=y
|
||||||
|
CONFIG_USB_UART_CONSOLE=y
|
||||||
|
CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"
|
||||||
|
|
||||||
|
# Sensor logging
|
||||||
|
CONFIG_SENSOR_LOG_LEVEL_DBG=y
|
||||||
|
#CONFIG_SENSOR_LOG_LEVEL=4
|
||||||
|
CONFIG_SENSOR_INIT_PRIORITY=90
|
Loading…
Reference in a new issue