update_tri_layer(x, y, z)
update_tri_layer(x, y, z)function. This function check to see if layers
yare both on. If they are both on, then it turns on layer
z. Otherwise, if both
yare not both on (either only one is, or neither is), then it turns off layer
update_tri_layer_state(state, x, y, z)
update_tri_layer_state(state, x, y, z). This function is meant to be called from the
layer_state_set_*functions. This means that any time that you use a keycode to change the layer, this will be checked. So you could use
LT(layer, kc)to change the layer and it will trigger the same layer check.
zlayer without having
ylayers on, since if you try to activate just layer
z, it will run this code and turn off layer
zbefore you could use it. 2. Because layers are processed from the highest number
zshould be a higher layer than
yor you may not be able to access it.
set_single_persistent_default_layer(layer). If you have a name defined for your layer, you can use that instead (such as _QWERTY, _DVORAK or _COLEMAK).
config.hfile, like this:
RESETquantum keycode that you can use. But if you want to reset the board as part of a macro, rather than hitting a key separately, you can do that.
reset_keyboard()to your function or macro, and this will reset to bootloader.
EEP_RSTkeycode or Bootmagic Lite functionality. If neither of those are an option, then you can use a custom macro to do so.
eeconfig_init()from your function or macro to reset most of the settings to default.
tap_random_base64()function. This pseudorandomly selects a number between 0 and 63, and then sends a key press based on that selection. (0–25 is
Z, 26–51 is
z, 52–61 is
9, 62 is
+and 63 is