Skip to content

Commit

Permalink
copypasta test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaSaadAbdo authored Sep 9, 2024
1 parent 74d414e commit f134502
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 23 deletions.
48 changes: 25 additions & 23 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -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
shield: copypasta
9 changes: 9 additions & 0 deletions config/boards/shields/copypasta/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2021 The ZMK Contributors
# SPDX-License-Identifier: MIT

if SHIELD_COPYPASTA

config ZMK_KEYBOARD_NAME
default "Copypasta"

endif
5 changes: 5 additions & 0 deletions config/boards/shields/copypasta/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2021 The ZMK Contributors
# SPDX-License-Identifier: MIT

config SHIELD_COPYPASTA
def_bool $(shields_list_contains,copypasta)
21 changes: 21 additions & 0 deletions config/boards/shields/copypasta/copypasta.conf
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions config/boards/shields/copypasta/copypasta.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>


/ {
keymap {
compatible = "zmk,keymap";

default_layer {

bindings = <

&kp N1 &kp N2

>;
};
};
};
37 changes: 37 additions & 0 deletions config/boards/shields/copypasta/copypasta.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2020 Pete Johanson
*
* SPDX-License-Identifier: MIT
*/
#include <dt-bindings/zmk/matrix-transform.h>

/ {
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
;
};

0 comments on commit f134502

Please sign in to comment.