CrossR
4 years ago
54 changed files with 815 additions and 77 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands |
||||
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py |
||||
-c |
||||
-b 0x26000 |
||||
-f 0xADA52840 |
||||
-o ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.uf2 |
||||
${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.bin |
||||
) |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config BOARD_ENABLE_DCDC |
||||
bool "Enable DCDC mode" |
||||
select SOC_DCDC_NRF52X |
||||
default y |
||||
depends on BOARD_BLUEMICRO52840_V1 |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# BlueMicro52840_V1 board configuration |
||||
|
||||
# Copyright (c) 2020 Pete Johanson, Derek Schmell |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config BOARD_BLUEMICRO52840_V1 |
||||
bool "BlueMicro52840_V1" |
||||
depends on SOC_NRF52840_QIAA |
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
# BlueMicro52840 board configuration |
||||
|
||||
# Copyright (c) 2020 Pete Johanson, Derek Schmell |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if BOARD_BLUEMICRO52840_V1 |
||||
|
||||
config BOARD |
||||
default "bluemicro52840_v1" |
||||
|
||||
if USB |
||||
|
||||
config USB_NRFX |
||||
default y |
||||
|
||||
config USB_DEVICE_STACK |
||||
default y |
||||
|
||||
endif # USB |
||||
|
||||
config BT_CTLR |
||||
default BT |
||||
|
||||
config ZMK_BLE |
||||
default y |
||||
|
||||
config ZMK_USB |
||||
default y |
||||
|
||||
endif # BOARD_BLUEMICRO52840_V1 |
@ -0,0 +1,52 @@
@@ -0,0 +1,52 @@
|
||||
/* |
||||
* Copyright (c) 2020 Derek Schmell |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
/ { |
||||
pro_micro_d: connector_d { |
||||
compatible = "arduino-pro-micro"; |
||||
#gpio-cells = <2>; |
||||
gpio-map-mask = <0xffffffff 0xffffffc0>; |
||||
gpio-map-pass-thru = <0 0x3f>; |
||||
gpio-map |
||||
= <0 0 &gpio0 8 0> /* D0 D2 */ |
||||
, <1 0 &gpio0 6 0> /* D1 D3*/ |
||||
, <2 0 &gpio0 15 0> /* D2 D1*/ |
||||
, <3 0 &gpio0 17 0> /* D3 D0*/ |
||||
, <4 0 &gpio0 20 0> /* D4/A6 D4*/ |
||||
, <5 0 &gpio0 13 0> /* D5 C6*/ |
||||
, <6 0 &gpio0 24 0> /* D6/A7 D7*/ |
||||
, <7 0 &gpio0 9 0> /* D7 E6*/ |
||||
, <8 0 &gpio0 10 0> /* D8/A8 B4*/ |
||||
, <9 0 &gpio1 6 0> /* D9/A9 B5*/ |
||||
, <10 0 &gpio1 11 0> /* D10/A10 B6*/ |
||||
, <16 0 &gpio0 28 0> /* D16 B2*/ |
||||
, <14 0 &gpio0 3 0> /* D14 B3*/ |
||||
, <15 0 &gpio1 13 0> /* D15 B1*/ |
||||
; |
||||
}; |
||||
|
||||
pro_micro_a: connector_a { |
||||
compatible = "arduino-pro-micro"; |
||||
#gpio-cells = <2>; |
||||
gpio-map-mask = <0xffffffff 0xffffffc0>; |
||||
gpio-map-pass-thru = <0 0x3f>; |
||||
gpio-map |
||||
= <0 0 &gpio0 2 0> /* A0 F7*/ |
||||
, <1 0 &gpio0 29 0> /* A1 F6*/ |
||||
, <2 0 &gpio0 26 0> /* A2 F5*/ |
||||
, <3 0 &gpio0 30 0> /* A3 F4*/ |
||||
, <6 0 &gpio0 20 0> /* D4/A6 D4*/ |
||||
, <7 0 &gpio0 24 0> /* D6/A7 D7*/ |
||||
, <8 0 &gpio0 10 0> /* D8/A8 B4*/ |
||||
, <9 0 &gpio1 6 0> /* D9/A9 B5*/ |
||||
, <10 0 &gpio1 13 0> /* D10/A10 B6*/ |
||||
; |
||||
}; |
||||
}; |
||||
|
||||
pro_micro_i2c: &i2c0 {}; |
||||
pro_micro_spi: &spi0 {}; |
||||
pro_micro_serial: &uart0 {}; |
@ -0,0 +1,96 @@
@@ -0,0 +1,96 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson, Derek Schmell |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
/dts-v1/; |
||||
#include <nordic/nrf52840_qiaa.dtsi> |
||||
#include "arduino_pro_micro_pins.dtsi" |
||||
|
||||
/ { |
||||
model = "BlueMicro52840_V1"; |
||||
compatible = "bluemicro52840,v1"; |
||||
|
||||
chosen { |
||||
zephyr,code-partition = &code_partition; |
||||
// zephyr,console = &uart0; |
||||
//zephyr,bt-mon-uart = &uart0; |
||||
//zephyr,bt-c2h-uart = &uart0; |
||||
zephyr,sram = &sram0; |
||||
zephyr,flash = &flash0; |
||||
}; |
||||
|
||||
leds { |
||||
compatible = "gpio-leds"; |
||||
blue_led: led_0 { |
||||
gpios = <&gpio0 42 GPIO_ACTIVE_HIGH>; |
||||
label = "Blue LED"; |
||||
}; |
||||
}; |
||||
|
||||
}; |
||||
|
||||
&gpio0 { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&gpio1 { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&i2c0 { |
||||
compatible = "nordic,nrf-twi"; |
||||
sda-pin = <15>; |
||||
scl-pin = <17>; |
||||
}; |
||||
|
||||
&uart0 { |
||||
compatible = "nordic,nrf-uarte"; |
||||
status = "okay"; |
||||
current-speed = <115200>; |
||||
tx-pin = <39>; |
||||
rx-pin = <34>; |
||||
rts-pin = <33>; |
||||
cts-pin = <12>; |
||||
}; |
||||
|
||||
&usbd { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
|
||||
&flash0 { |
||||
/* |
||||
* For more information, see: |
||||
* http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html |
||||
*/ |
||||
partitions { |
||||
compatible = "fixed-partitions"; |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
|
||||
boot_partition: partition@0 { |
||||
label = "adafruit_boot"; |
||||
reg = <0x000000000 0x0000C000>; |
||||
}; |
||||
code_partition: partition@26000 { |
||||
label = "code_partition"; |
||||
reg = <0x00026000 0x000d2000>; |
||||
}; |
||||
|
||||
/* |
||||
* The flash starting at 0x000f8000 and ending at |
||||
* 0x000fffff is reserved for use by the application. |
||||
*/ |
||||
|
||||
/* |
||||
* Storage partition will be used by FCB/LittleFS/NVS |
||||
* if enabled. |
||||
*/ |
||||
storage_partition: partition@f8000 { |
||||
label = "storage"; |
||||
reg = <0x000f8000 0x00008000>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
identifier: bluemicro52840_v1 |
||||
name: BlueMicro52840_V1 |
||||
type: mcu |
||||
arch: arm |
||||
toolchain: |
||||
- zephyr |
||||
- gnuarmemb |
||||
- xtools |
||||
supported: |
||||
- adc |
||||
- usb_device |
||||
- ble |
||||
- ieee802154 |
||||
- pwm |
||||
- watchdog |
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
CONFIG_SOC_SERIES_NRF52X=y |
||||
CONFIG_SOC_NRF52840_QIAA=y |
||||
CONFIG_BOARD_BLUEMICRO52840_V1=y |
||||
|
||||
# Enable MPU |
||||
CONFIG_ARM_MPU=y |
||||
|
||||
# enable GPIO |
||||
CONFIG_GPIO=y |
||||
|
||||
CONFIG_USE_DT_CODE_PARTITION=y |
||||
|
||||
CONFIG_MPU_ALLOW_FLASH_WRITE=y |
||||
CONFIG_NVS=y |
||||
CONFIG_SETTINGS_NVS=y |
||||
CONFIG_FLASH=y |
||||
CONFIG_FLASH_PAGE_LAYOUT=y |
||||
CONFIG_FLASH_MAP=y |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
board_runner_args(nrfjprog "--nrf-family=NRF52" "--softreset") |
||||
include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake) |
||||
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) |
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
||||
|
@ -1,7 +1,9 @@
@@ -1,7 +1,9 @@
|
||||
#include <behaviors/key_press.dtsi> |
||||
#include <behaviors/transparent.dtsi> |
||||
#include <behaviors/none.dtsi> |
||||
#include <behaviors/mod_tap.dtsi> |
||||
#include <behaviors/momentary_layer.dtsi> |
||||
#include <behaviors/toggle_layer.dtsi> |
||||
#include <behaviors/reset.dtsi> |
||||
#include <behaviors/sensor_rotate_key_press.dtsi> |
||||
#include <behaviors/rgb_underglow.dtsi> |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
/ { |
||||
behaviors { |
||||
none: behavior_none { |
||||
compatible = "zmk,behavior-none"; |
||||
label = "NONE"; |
||||
#binding-cells = <0>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
/* |
||||
* Copyright (c) 2020 Cody McGinnis <brainwart@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
/ { |
||||
behaviors { |
||||
tog: behavior_toggle_layer { |
||||
compatible = "zmk,behavior-toggle-layer"; |
||||
label = "TOGGLE_LAYER"; |
||||
#binding-cells = <1>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020, Pete Johanson |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
description: None Binding Behavior |
||||
|
||||
compatible: "zmk,behavior-none" |
||||
|
||||
include: zero_param.yaml |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020, Cody McGinnis <brainwart@gmail.com> |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
description: Toggle Layer |
||||
|
||||
compatible: "zmk,behavior-toggle-layer" |
||||
|
||||
include: one_param.yaml |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
# Copyright (c) 2020, Pete Johanson |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
description: | |
||||
Defines a set of key positions that will unpair all BT devices if held on startup. |
||||
|
||||
compatible: "zmk,bt-unpair-combo" |
||||
|
||||
properties: |
||||
key-positions: |
||||
type: array |
||||
required: true |
@ -1,6 +1,8 @@
@@ -1,6 +1,8 @@
|
||||
#pragma once |
||||
|
||||
bool zmk_keymap_layer_active(u8_t layer); |
||||
int zmk_keymap_layer_activate(u8_t layer); |
||||
int zmk_keymap_layer_deactivate(u8_t layer); |
||||
int zmk_keymap_layer_toggle(u8_t layer); |
||||
|
||||
int zmk_keymap_position_state_changed(u32_t position, bool pressed); |
||||
|
@ -0,0 +1,48 @@
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Peter Johanson <peter@peterjohanson.com> |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#define DT_DRV_COMPAT zmk_behavior_none |
||||
|
||||
#include <device.h> |
||||
#include <power/reboot.h> |
||||
#include <drivers/behavior.h> |
||||
#include <logging/log.h> |
||||
|
||||
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); |
||||
|
||||
struct behavior_none_config { }; |
||||
struct behavior_none_data { }; |
||||
|
||||
static int behavior_none_init(struct device *dev) |
||||
{ |
||||
return 0; |
||||
}; |
||||
|
||||
static int on_keymap_binding_pressed(struct device *dev, u32_t position, u32_t _param1, u32_t _param2) |
||||
{ |
||||
return 1; |
||||
} |
||||
|
||||
static int on_keymap_binding_released(struct device *dev, u32_t position, u32_t _param1, u32_t _param2) |
||||
{ |
||||
return 1; |
||||
} |
||||
|
||||
static const struct behavior_driver_api behavior_none_driver_api = { |
||||
.binding_pressed = on_keymap_binding_pressed, |
||||
.binding_released = on_keymap_binding_released, |
||||
}; |
||||
|
||||
|
||||
static const struct behavior_none_config behavior_none_config = {}; |
||||
|
||||
static struct behavior_none_data behavior_none_data; |
||||
|
||||
DEVICE_AND_API_INIT(behavior_none, DT_INST_LABEL(0), behavior_none_init, |
||||
&behavior_none_data, |
||||
&behavior_none_config, |
||||
APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, |
||||
&behavior_none_driver_api); |
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Cody McGinnis <brainwart@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#define DT_DRV_COMPAT zmk_behavior_toggle_layer |
||||
|
||||
#include <device.h> |
||||
#include <drivers/behavior.h> |
||||
#include <logging/log.h> |
||||
|
||||
#include <zmk/keymap.h> |
||||
|
||||
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); |
||||
|
||||
struct behavior_tog_config { }; |
||||
struct behavior_tog_data { }; |
||||
|
||||
static int behavior_tog_init(struct device *dev) |
||||
{ |
||||
return 0; |
||||
}; |
||||
|
||||
|
||||
static int tog_keymap_binding_pressed(struct device *dev, u32_t position, u32_t layer, u32_t _) |
||||
{ |
||||
return zmk_keymap_layer_toggle(layer); |
||||
} |
||||
|
||||
static int tog_keymap_binding_released(struct device *dev, u32_t position, u32_t layer, u32_t _) |
||||
{ |
||||
return 0; |
||||
} |
||||
|
||||
static const struct behavior_driver_api behavior_tog_driver_api = { |
||||
.binding_pressed = tog_keymap_binding_pressed, |
||||
.binding_released = tog_keymap_binding_released, |
||||
}; |
||||
|
||||
static const struct behavior_tog_config behavior_tog_config = {}; |
||||
|
||||
static struct behavior_tog_data behavior_tog_data; |
||||
|
||||
DEVICE_AND_API_INIT(behavior_tog, DT_INST_LABEL(0), behavior_tog_init, |
||||
&behavior_tog_data, |
||||
&behavior_tog_config, |
||||
APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, |
||||
&behavior_tog_driver_api); |
@ -0,0 +1,80 @@
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Peter Johanson |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <device.h> |
||||
#include <init.h> |
||||
|
||||
#include <logging/log.h> |
||||
|
||||
#define DT_DRV_COMPAT zmk_bt_unpair_combo |
||||
|
||||
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); |
||||
|
||||
#include <zmk/ble.h> |
||||
#include <zmk/event-manager.h> |
||||
#include <zmk/events/position-state-changed.h> |
||||
|
||||
|
||||
static u8_t combo_state; |
||||
|
||||
const u32_t key_positions[] = DT_INST_PROP(0, key_positions); |
||||
#define KP_LEN DT_INST_PROP_LEN(0, key_positions) |
||||
|
||||
int index_for_key_position(u32_t kp) |
||||
{ |
||||
for (int i = 0; i < KP_LEN; i++) { |
||||
if (key_positions[i] == kp) { |
||||
return i; |
||||
} |
||||
} |
||||
|
||||
return -1; |
||||
} |
||||
|
||||
int unpair_combo_listener(const struct zmk_event_header *eh) |
||||
{ |
||||
if (is_position_state_changed(eh)) { |
||||
const struct position_state_changed *psc = cast_position_state_changed(eh); |
||||
|
||||
int kp_index = index_for_key_position(psc->position); |
||||
if (kp_index < 0) { |
||||
return 0; |
||||
} |
||||
|
||||
WRITE_BIT(combo_state, kp_index, psc->state); |
||||
} |
||||
|
||||
return 0; |
||||
}; |
||||
|
||||
void unpair_combo_work_handler(struct k_work *work) |
||||
{ |
||||
for (int i = 0; i < KP_LEN; i++) { |
||||
if (!(combo_state & BIT(i))) { |
||||
LOG_DBG("Key position %d not held, skipping unpair combo", key_positions[i]); |
||||
return; |
||||
} |
||||
} |
||||
|
||||
zmk_ble_unpair_all(); |
||||
}; |
||||
|
||||
struct k_delayed_work unpair_combo_work; |
||||
|
||||
int zmk_ble_unpair_combo_init(struct device *_unused) |
||||
{ |
||||
k_delayed_work_init(&unpair_combo_work, unpair_combo_work_handler); |
||||
k_delayed_work_submit(&unpair_combo_work, K_SECONDS(2)); |
||||
|
||||
return 0; |
||||
}; |
||||
|
||||
ZMK_LISTENER(zmk_ble_unpair_combo, unpair_combo_listener); |
||||
ZMK_SUBSCRIPTION(zmk_ble_unpair_combo, position_state_changed); |
||||
|
||||
SYS_INIT(zmk_ble_unpair_combo_init, |
||||
APPLICATION, |
||||
CONFIG_APPLICATION_INIT_PRIORITY); |
@ -0,0 +1,41 @@
@@ -0,0 +1,41 @@
|
||||
--- |
||||
title: Miscellaneous |
||||
--- |
||||
|
||||
## Summary |
||||
|
||||
There are a few miscellaneous behaviors that are helpful when working with layers in keymaps, |
||||
in particular, with handling what happens in higher layers, and if events are passed to |
||||
the next layer or not |
||||
|
||||
## Transparent |
||||
|
||||
The transparent behavior simply ignores key position presses/releases, so they will be |
||||
passed down to the next active layer in the stack. |
||||
|
||||
### Behavior Binding |
||||
|
||||
- Reference: `&trans` |
||||
- Parameters: None |
||||
|
||||
Example: |
||||
|
||||
``` |
||||
&trans |
||||
``` |
||||
|
||||
## None |
||||
|
||||
The none behavior simply swallows and stops key position presses/releases, so they will **not** |
||||
be passed down to the next active layer in the stack. |
||||
|
||||
### Behavior Binding |
||||
|
||||
- Reference: `&none` |
||||
- Parameters: None |
||||
|
||||
Example: |
||||
|
||||
``` |
||||
&none |
||||
``` |
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
--- |
||||
title: Mod-Tap |
||||
--- |
||||
|
||||
## Summary |
||||
|
||||
The Mod-Tap behavior allows varying the effect of pressing and releasing a key position depending |
||||
on whether it is used with other simultaneous key presses at the same time. |
||||
|
||||
If pressed and released independently, the Mod-Tap behavior will send the press and release events |
||||
for the configure keycode. If pressed and held while another key is pressed and released, then |
||||
the configured modifiers will be applied to that _other_ key press, and no press will be generated |
||||
on the release of the Mod-Tap key. |
||||
|
||||
## Mod-Tap |
||||
|
||||
The Mod-Tap behavior either acts as a held modifier, or as a tapped keycode. |
||||
|
||||
### Behavior Binding |
||||
|
||||
- Reference: `&mt` |
||||
- Parameter #1: The modifiers to be used when activating as a modifier, e.g. `MOD_LSFT` |
||||
- Parameter #2: The keycode to sent when used as a tap, e.g. `A`, `B`. |
||||
|
||||
Example: |
||||
|
||||
``` |
||||
&mt MOD_LSFT A |
||||
``` |
Loading…
Reference in new issue