i think there is some miscommunication on some of the terms
layout = physical number of keys & position of those keys on the board
keymap = what keycode is sent when you press a key or key combination
layer = part of the keymap, or an alternate keymap that can be switched to:
- momentarily (while holding a key.. Fn, Raise, Lower, etc..)
- temporarily... until another key is pressed
- temporarily... when you switch to another layout (... say... Fn + D for Dvorak)
normally, you DO NOT switch between physical layouts (number & position of keys on the board)
- you could change the physical layout... say, if you were rebuilding your board from an all 1u grid to incorporate a 2u space by moving one of the switches to the center, and removing the other switch that is now in the way.
you DO switch between layers of a keymap (different keycodes for the same key, depending on what layer or modifier you are using/holding)
you would choose ONE of the physical layouts that would match your keyboard.
- mit
- grid
- etc...
then you would define what happens when a particular key is pressed in the keymap, adding layers and Fn/modifiers, etc..
--
i think i will be able to help you better if you tell me more about your board.
- is it a pcb you made/bought or hand wired?
- can you upload a ZIP as an attachment to this thread of the QMK config files you've put together so far?
i'm going to work up a keyboard layout editor layout of your board, so it will be easier for both of us to visualize what your trying to accomplish. (i'll post link shortly once i transfer what you posted of your keymap)
-- more explanation, but doubtful it will be helpful--
yes, this that you pulled out...
LAYOUT_planck_mit
LAYOUT_planck_grid
LAYOUT_kc_ortho_4x12
...is the end of rev6.h where they are defining the names of the different electrical matrices for the different physical layouts. in that section, they are just giving the physical layouts different names.
#define LAYOUT_planck_mit LAYOUT_planck_1x2uC
so, LAYOUT_planck_mit is LAYOUT_planck_1x2uC. 1x2uC, meaning, one 2u key Center
here is what that #define tag is calling
#define LAYOUT_planck_1x2uC( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
k30, k31, k32, k33, k34, k36, k37, k38, k39, k3a, k3b \
) \
{ \
{ k00, k01, k02, k03, k04, k05 }, \
{ k10, k11, k12, k13, k14, k15 }, \
{ k20, k21, k22, k23, k24, k25 }, \
{ k30, k31, k32, k39, k3a, k3b }, \
{ k06, k07, k08, k09, k0a, k0b }, \
{ k16, k17, k18, k19, k1a, k1b }, \
{ k26, k27, k28, k29, k2a, k2b }, \
{ k36, k37, k38, k33, k34, KC_NO } \
}
this portion the actual electrical matrix (how it is connected to the controller)
{ \
{ k00, k01, k02, k03, k04, k05 }, \
{ k10, k11, k12, k13, k14, k15 }, \
{ k20, k21, k22, k23, k24, k25 }, \
{ k30, k31, k32, k39, k3a, k3b }, \
{ k06, k07, k08, k09, k0a, k0b }, \
{ k16, k17, k18, k19, k1a, k1b }, \
{ k26, k27, k28, k29, k2a, k2b }, \
{ k36, k37, k38, k33, k34, KC_NO } \
}
this portion is rearranging the electrical matrix to match the physical layout
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
k30, k31, k32, k33, k34, k36, k37, k38, k39, k3a, k3b \
) \
which then is the basis of your keymap.