Browse Source
* Easy to build board/image that will clear saved profile/bond information for a fresh start for keyboards.xmkb
Pete Johanson
4 years ago
6 changed files with 63 additions and 0 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if SHIELD_SETTINGS_RESET |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "SETTINGS RESET" |
||||
|
||||
endif |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_SETTINGS_RESET |
||||
def_bool $(shields_list_contains,settings_reset) |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START=y |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
/* |
||||
* Copyright (c) 2020 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
bindings = < |
||||
&reset |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
|
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
/* |
||||
* Copyright (c) 2020 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
}; |
||||
|
||||
kscan0: kscan { |
||||
compatible = "zmk,kscan-gpio-direct"; |
||||
label = "KSCAN"; |
||||
|
||||
input-gpios |
||||
= <&pro_micro_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> |
||||
; |
||||
}; |
||||
|
||||
}; |
||||
|
Loading…
Reference in new issue