diff --git a/build.yaml b/build.yaml index 6671afcb..48350242 100644 --- a/build.yaml +++ b/build.yaml @@ -1,26 +1,28 @@ --- include: - - board: nice_nano_v2 - shield: settings_reset - - board: nice_nano_v2 - shield: wizza_left - - board: nice_nano_v2 - shield: wizza_right - - board: nice_nano_v2 - shield: wizzav2_left - - board: nice_nano_v2 - shield: wizzav2_right - - board: nice_nano_v2 - shield: wizzades_left - - board: nice_nano_v2 - shield: wizzades_right - - board: nice_nano_v2 - shield: asfoora - - board: nice_nano_v2 - shield: wasfoora - - board: nice_nano_v2 - shield: ghazal nice_view + # - board: nice_nano_v2 + # shield: settings_reset + # - board: nice_nano_v2 + # shield: wizza_left + # - board: nice_nano_v2 + # shield: wizza_right + # - board: nice_nano_v2 + # shield: wizzav2_left + # - board: nice_nano_v2 + # shield: wizzav2_right + # - board: nice_nano_v2 + # shield: wizzades_left + # - board: nice_nano_v2 + # shield: wizzades_right + # - board: nice_nano_v2 + # shield: asfoora + # - board: nice_nano_v2 + # shield: wasfoora + # - board: nice_nano_v2 + # shield: ghazal nice_view + # - board: seeeduino_xiao_ble + # shield: rommana_left rgbled_widget + # - board: seeeduino_xiao_ble + # shield: rommana_right rgbled_widget - board: seeeduino_xiao_ble - shield: rommana_left rgbled_widget - - board: seeeduino_xiao_ble - shield: rommana_right rgbled_widget \ No newline at end of file + shield: copypasta \ No newline at end of file diff --git a/config/boards/shields/copypasta/Kconfig.defconfig b/config/boards/shields/copypasta/Kconfig.defconfig new file mode 100644 index 00000000..a81b75e3 --- /dev/null +++ b/config/boards/shields/copypasta/Kconfig.defconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2021 The ZMK Contributors +# SPDX-License-Identifier: MIT + +if SHIELD_COPYPASTA + +config ZMK_KEYBOARD_NAME + default "Copypasta" + +endif diff --git a/config/boards/shields/copypasta/Kconfig.shield b/config/boards/shields/copypasta/Kconfig.shield new file mode 100644 index 00000000..c65f5d58 --- /dev/null +++ b/config/boards/shields/copypasta/Kconfig.shield @@ -0,0 +1,5 @@ +# Copyright (c) 2021 The ZMK Contributors +# SPDX-License-Identifier: MIT + +config SHIELD_COPYPASTA + def_bool $(shields_list_contains,copypasta) diff --git a/config/boards/shields/copypasta/copypasta.conf b/config/boards/shields/copypasta/copypasta.conf new file mode 100644 index 00000000..d1babe15 --- /dev/null +++ b/config/boards/shields/copypasta/copypasta.conf @@ -0,0 +1,21 @@ +# increase bluetooth signal power +CONFIG_BT_CTLR_TX_PWR_PLUS_8=y + +# enable deep sleep support +CONFIG_ZMK_SLEEP=y + +# "Eager Debouncing" +# Trying to lower the input lag. +CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1 +CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=5 + +# the keyboard disconnects from bluetooth. +# uses very little power, but it may take +# a few seconds to reconnect after waking. +# 1.800.000 ms = 30 minutes +CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000 + +# Better compatibility with iPadOS +CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC=y + +CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=20 \ No newline at end of file diff --git a/config/boards/shields/copypasta/copypasta.keymap b/config/boards/shields/copypasta/copypasta.keymap new file mode 100644 index 00000000..0f76e8c9 --- /dev/null +++ b/config/boards/shields/copypasta/copypasta.keymap @@ -0,0 +1,19 @@ +#include +#include +#include + + +/ { + keymap { + compatible = "zmk,keymap"; + + default_layer { + + bindings = < + + &kp N1 &kp N2 + + >; + }; + }; +}; \ No newline at end of file diff --git a/config/boards/shields/copypasta/copypasta.overlay b/config/boards/shields/copypasta/copypasta.overlay new file mode 100644 index 00000000..05c86b83 --- /dev/null +++ b/config/boards/shields/copypasta/copypasta.overlay @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020 Pete Johanson + * + * SPDX-License-Identifier: MIT + */ + #include + +/ { + chosen { + zmk,kscan = &kscan0; + zmk,matrix_transform = &default_transform; + }; + + default_transform: keymap_transform_0 { + compatible = "zmk,matrix-transform"; + columns = <8>; + rows = <1>; + map = < + RC(0,0) RC(0,1) + >; + }; + + kscan0: kscan { + compatible = "zmk,kscan-gpio-direct"; + label = "KSCAN"; + }; + +}; + + +&kscan0 { + input-gpios= + <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>//D7 + , <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>//C6 + ; +}; + \ No newline at end of file