Add EEPROM_RESET keycode to core code (#4234)
* Add EEPROM Reset keycode * Add keycode to docs * Move EEPROM Reset code to the end of the enum * Cleanup and naming changemaster
parent
f2101cfb6a
commit
6e44f94f21
|
@ -8,15 +8,16 @@ On this page we have documented keycodes between `0x00FF` and `0xFFFF` which are
|
||||||
|
|
||||||
## QMK Keycodes
|
## QMK Keycodes
|
||||||
|
|
||||||
|Key |Aliases |Description |
|
|Key |Aliases |Description |
|
||||||
|-------------|-----------|---------------------------------------------------------------------|
|
|---------------|-----------|---------------------------------------------------------------------|
|
||||||
|`RESET` | |Put the keyboard into DFU mode for flashing |
|
|`RESET` | |Put the keyboard into DFU mode for flashing |
|
||||||
|`DEBUG` | |Toggle debug mode |
|
|`DEBUG` | |Toggle debug mode |
|
||||||
|`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>`</code> when pressed with Shift or GUI|
|
|`EEPROM_RESET` |`EEP_RST` |Resets EEPROM state by reinitializing it |
|
||||||
|`KC_LSPO` | |Left Shift when held, `(` when tapped |
|
|`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>`</code> when pressed with Shift or GUI|
|
||||||
|`KC_RSPC` | |Right Shift when held, `)` when tapped |
|
|`KC_LSPO` | |Left Shift when held, `(` when tapped |
|
||||||
|`KC_LEAD` | |The [Leader key](feature_leader_key.md) |
|
|`KC_RSPC` | |Right Shift when held, `)` when tapped |
|
||||||
|`KC_LOCK` | |The [Lock key](feature_key_lock.md) |
|
|`KC_LEAD` | |The [Leader key](feature_leader_key.md) |
|
||||||
|`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) |
|
|`KC_LOCK` | |The [Lock key](feature_key_lock.md) |
|
||||||
|`M(n)` | |Call macro `n` |
|
|`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) |
|
||||||
|`MACROTAP(n)`| |Macro-tap `n` idk FIXME |
|
|`M(n)` | |Call macro `n` |
|
||||||
|
|`MACROTAP(n)` | |Macro-tap `n` idk FIXME |
|
||||||
|
|
|
@ -298,6 +298,11 @@ bool process_record_quantum(keyrecord_t *record) {
|
||||||
print("DEBUG: enabled.\n");
|
print("DEBUG: enabled.\n");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
case EEPROM_RESET:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
eeconfig_init();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
#ifdef FAUXCLICKY_ENABLE
|
#ifdef FAUXCLICKY_ENABLE
|
||||||
case FC_TOG:
|
case FC_TOG:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
|
|
|
@ -454,6 +454,8 @@ enum quantum_keycodes {
|
||||||
TERM_OFF,
|
TERM_OFF,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
EEPROM_RESET,
|
||||||
|
|
||||||
// always leave at the end
|
// always leave at the end
|
||||||
SAFE_RANGE
|
SAFE_RANGE
|
||||||
};
|
};
|
||||||
|
@ -569,6 +571,8 @@ enum quantum_keycodes {
|
||||||
|
|
||||||
#define KC_GESC GRAVE_ESC
|
#define KC_GESC GRAVE_ESC
|
||||||
|
|
||||||
|
#define EEP_RST EEPROM_RESET
|
||||||
|
|
||||||
#define CK_TOGG CLICKY_TOGGLE
|
#define CK_TOGG CLICKY_TOGGLE
|
||||||
#define CK_RST CLICKY_RESET
|
#define CK_RST CLICKY_RESET
|
||||||
#define CK_UP CLICKY_UP
|
#define CK_UP CLICKY_UP
|
||||||
|
|
Loading…
Reference in New Issue