Browse Source
* Allow reset behavior to have a type property. * Add `bootloader` node that triggers DFU UF2 bootloader mode using the AdaFruit nrf52 bootloader.xmkb
Pete Johanson
4 years ago
6 changed files with 87 additions and 12 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Peter Johanson <peter@peterjohanson.com> |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#define RST_WARM 0x00 |
||||
#define RST_COLD 0x01 |
||||
|
||||
// AdaFruit nrf52 Bootloader Specific. See https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/d6b28e66053eea467166f44875e3c7ec741cb471/src/main.c#L107
|
||||
|
||||
#define RST_UF2 0x57 |
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
--- |
||||
title: Reset Behaviors |
||||
sidebar_label: Reset |
||||
--- |
||||
|
||||
## Summary |
||||
|
||||
There are two available behaviors that can be used to trigger a reset of the keyboard. |
||||
The first is a soft reset, that will simply reset and re-run the currently flashed |
||||
firmware; the second when triggered will reset into the bootloader, allowing you to |
||||
flash a new firmware to the keyboard. |
||||
|
||||
## Reset |
||||
|
||||
The basic reset behavior will reset the keyboard and re-run the firmware flashed |
||||
to the device |
||||
|
||||
### Behavior Binding |
||||
|
||||
- Reference: `&reset` |
||||
- Parameters: None |
||||
|
||||
Example: |
||||
|
||||
``` |
||||
&reset |
||||
``` |
||||
|
||||
## Bootloader Reset |
||||
|
||||
The bootloader reset behavior will reset the keyboard and put it into bootloader mode, allowing |
||||
you to flash a new firmware. |
||||
|
||||
### Behavior Binding |
||||
|
||||
- Reference: `&bootloader` |
||||
- Parameters: None |
||||
|
||||
Example: |
||||
|
||||
``` |
||||
&bootloader |
||||
``` |
Loading…
Reference in new issue