venabili.c
file as 4x12 matrices of keys that match the position of the physical switches.{}
and each key is separated by a comma ,
, these are just normal C arrays.add_layer(name)
function like so:N_LAYERS
number in the config.h
file to match the number of layers you have registered.Layer Selection
keys LS(id, key)
, where id is the layer number that key will take you to and key is the normal key to be triggered if you press and release the key without using any of the keys inside that layer. A great example of this is:Layer Selection
key in one layer, has some other key in the upper layer, that key will also be pressed as soon as you enter the layer. To avoid this have that key to be k_empty
in the upper layer like so:Layer Selection
key, you will go back to the default layer (the very first layer that you declared) as soon as you release it. There are however some use case scenarios where you might want to stay in a layer without having to hold any key.Layer Lock
key inside the target layer:LS(1, k_space)
key in layer 0 and then press the your c_layer_lock
key that is inside layer 1 the keyboard will stay in layer 1 when you release all the keys.Layer Lock
key once again and you'll be back to the default layer.