Skip to content

Commit

Permalink
wasfoora
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaSaadAbdo authored Apr 18, 2024
1 parent d75fe3b commit a36cc58
Show file tree
Hide file tree
Showing 10 changed files with 441 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ include:
shield: wizzades_right
- board: nice_nano_v2
shield: asfoora
- board: nice_nano_v2
shield: wasfoora
- board: seeeduino_xiao_ble
shield: rommana_left rgbled_widget
- board: seeeduino_xiao_ble
Expand Down
31 changes: 31 additions & 0 deletions config/base30.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
// ╰─────────────┴─────────────┼─────────────┤ ├─────────────┼─────────────┴─────────────╯
&macro_nav &kp SPACE &skq LSHIFT &macro_sym
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯

#ifdef FIVEWAY
&kp C &kp G &kp D &kp L &kp O
#endif
>;
#ifdef ENCODERS
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_UP PG_DN>;
Expand All @@ -135,6 +139,10 @@
// ╰─────────────┴─────────────┼─────────────┤ ├─────────────┼─────────────┴─────────────╯
&trans &trans &trans &trans
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯

#ifdef FIVEWAY
&kp C &kp G &kp D &kp L &kp O
#endif
>;
#ifdef ENCODERS
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_UP PG_DN>;
Expand All @@ -151,6 +159,10 @@
// ╰─────────────┴─────────────┼─────────────┤ ├─────────────┼─────────────┴─────────────╯
&trans &trans &trans &trans
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯

#ifdef FIVEWAY
&kp C &kp G &kp D &kp L &kp O
#endif
>;
#ifdef ENCODERS
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_UP PG_DN>;
Expand All @@ -167,6 +179,10 @@
// ╰─────────────┴─────────────┼─────────────┤ ├─────────────┼─────────────┴─────────────╯
&macro_navW &kp SPACE &skq LSHIFT &macro_symW
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯

#ifdef FIVEWAY
&kp C &kp G &kp D &kp L &kp O
#endif
>;
#ifdef ENCODERS
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_UP PG_DN>;
Expand All @@ -185,6 +201,10 @@
// ╰─────────────┴─────────────┼─────────────┤ ├─────────────┼─────────────┴─────────────╯
&macro_navW &kp SPACE &skq LSHIFT &macro_symW
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯

#ifdef FIVEWAY
&kp C &kp G &kp D &kp L &kp O
#endif
>;
#ifdef ENCODERS
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_UP PG_DN>;
Expand All @@ -201,7 +221,12 @@
// ╰─────────────┴─────────────┼─────────────┤ ├─────────────┼─────────────┴─────────────╯
&trans &trans &trans &trans
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯

#ifdef FIVEWAY
&kp C &kp G &kp D &kp L &kp O
#endif
>;

#ifdef ENCODERS
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_UP PG_DN>;
#endif
Expand All @@ -217,7 +242,13 @@
// ╰─────────────┴─────────────┼─────────────┤ ├─────────────┼─────────────┴─────────────╯
&trans &trans &trans &trans
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯

#ifdef FIVEWAY
&kp C &kp G &kp D &kp L &kp O
#endif

>;

#ifdef ENCODERS
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_UP PG_DN>;
#endif
Expand Down
9 changes: 9 additions & 0 deletions config/boards/shields/wasfoora/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_WASFOORA

config ZMK_KEYBOARD_NAME
default "Wasfoora"

endif
5 changes: 5 additions & 0 deletions config/boards/shields/wasfoora/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_WASFOORA
def_bool $(shields_list_contains,wasfoora)
24 changes: 24 additions & 0 deletions config/boards/shields/wasfoora/asfoora.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y

# 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
4 changes: 4 additions & 0 deletions config/boards/shields/wasfoora/asfoora.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#define FIVEWAY

#include "../../../base30.keymap"

Loading

0 comments on commit a36cc58

Please sign in to comment.