Browse Source

Expanded keymap to include all keys for three layers.

main
Jason J. Gullickson 7 months ago
parent
commit
80f88a4315
  1. 5
      journal.md
  2. 152
      software/keyboard/qmk_kernel_module/rainpsp.dts

5
journal.md

@ -738,4 +738,9 @@ waiting for events
Now the next step is to complete the keymap in the overlay...
I found a website that makes it easy to see what keys belong where on the [planck keyboard](http://www.keyboard-layout-editor.com/##@@_a:7%3B&=Tab&=Q&=W&=E&=R&=T&=Y&=U&=I&=O&=P&=Back%20Space%3B&@=Esc&=A&=S&=D&=F&=G&=H&=J&=K&=L&=%2F%3B&='%3B&@=Shift&=Z&=X&=C&=V&=B&=N&=M&=,&=.&=%2F%2F&=Return%3B&@=&=Ctrl&=Alt&=Super&=%2F&dArr%2F%3B&_w:2%3B&=&=%2F&uArr%2F%3B&=%2F&larr%2F%3B&=%2F&darr%2F%3B&=%2F&uarr%2F%3B&=%2F&rarr%2F). Since that's the basis for RAIN-PSP's keyboard we'll start there.
I still don't understand how you access more than three layers, but that should be enough for now so I'm not going to worry about it too much.
Link to [layer 2](http://www.keyboard-layout-editor.com/##@@_a:7%3B&=%60&=1&=2&=3&=4&=5&=6&=7&=8&=9&=0&=Back%20Space%3B&@=DEL&=A&=S&=D&=F&=G&=H&=-&=%2F=&=%5B&=%5D&=%5C%3B&@=Shift&=Z&=X&=C&=V&=B&=N&=M&=,&=HOME&=END&=Return%3B&@=&=Ctrl&=Alt&=Super&=%2F&dArr%2F%3B&_w:2%3B&=&=%2F&uArr%2F%3B&=%2F&larr%2F%3B&=%2F&darr%2F%3B&=%2F&uarr%2F%3B&=%2F&rarr%2F)

152
software/keyboard/qmk_kernel_module/rainpsp.dts

@ -69,23 +69,163 @@
// ex:
// LAYER_MATRIX_KEY(0,0,0,KC_TAB)
// For now just do one key until we know it works.
// Layer 0
LAYER_MATRIX_KEY(0,0,0,KC_Q)
LAYER_MATRIX_KEY(0,0,0,KC_TAB)
LAYER_MATRIX_KEY(0,0,1,KC_Q)
LAYER_MATRIX_KEY(0,0,2,KC_W)
LAYER_MATRIX_KEY(0,0,3,KC_E)
LAYER_MATRIX_KEY(0,0,4,KC_R)
LAYER_MATRIX_KEY(0,0,5,KC_T)
LAYER_MATRIX_KEY(0,0,6,KC_Y)
LAYER_MATRIX_KEY(0,0,7,KC_U)
LAYER_MATRIX_KEY(0,0,8,KC_I)
LAYER_MATRIX_KEY(0,0,9,KC_O)
LAYER_MATRIX_KEY(0,0,10,KC_P)
LAYER_MATRIX_KEY(0,0,11,KC_BSPC)
LAYER_MATRIX_KEY(0,1,0,KC_ESC)
LAYER_MATRIX_KEY(0,1,1,KC_A)
LAYER_MATRIX_KEY(0,1,2,KC_S)
LAYER_MATRIX_KEY(0,1,3,KC_D)
LAYER_MATRIX_KEY(0,1,4,KC_F)
LAYER_MATRIX_KEY(0,1,5,KC_G)
LAYER_MATRIX_KEY(0,1,6,KC_H)
LAYER_MATRIX_KEY(0,1,7,KC_J)
LAYER_MATRIX_KEY(0,1,8,KC_K)
LAYER_MATRIX_KEY(0,1,9,KC_L)
LAYER_MATRIX_KEY(0,1,10,KC_SCLN)
LAYER_MATRIX_KEY(0,1,11,KC_QUOT)
LAYER_MATRIX_KEY(0,2,0,KC_LSFT)
LAYER_MATRIX_KEY(0,2,1,KC_Z)
LAYER_MATRIX_KEY(0,2,2,KC_X)
LAYER_MATRIX_KEY(0,2,3,KC_C)
LAYER_MATRIX_KEY(0,2,4,KC_V)
LAYER_MATRIX_KEY(0,2,5,KC_B)
LAYER_MATRIX_KEY(0,2,6,KC_N)
LAYER_MATRIX_KEY(0,2,7,KC_M)
LAYER_MATRIX_KEY(0,2,8,KC_COMM)
LAYER_MATRIX_KEY(0,2,9,KC_DOT)
LAYER_MATRIX_KEY(0,2,10,KC_SLSH)
LAYER_MATRIX_KEY(0,2,11,KC_ENT)
//LAYER_MATRIX_KEY(0,3,0,KC_??? // Not mapped in standard planck layer 1
LAYER_MATRIX_KEY(0,3,1,KC_LCLT)
LAYER_MATRIX_KEY(0,3,2,KC_LAL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Y(0,2,2,KC_X)
LAYER_MATRIX_KEY(0,2,3,KC_C)
LAYER_MATRIX_KEY(0,2,4,KC_V)
LAYER_MATRIX_KEY(0,2,5,KC_B)
LAYER_MATRIX_KEY(0,2,6,KC_N)
LAYER_MATRIX_KEY(0,2,7,KC_M)
LAYER_MATRIX_KEY(0,2,8,KC_COMM)
LAYER_MATRIX_KEY(0,2,9,KC_HOME)
LAYER_MATRIX_KEY(0,2,10,KC_END)
LAYER_MATRIX_KEY(0,2,11,KC_ENT)
//LAYER_MATRIX_KEY(0,3,0,KC_??? // Not mapped in standard planck layer 1
LAYER_MATRIX_KEY(0,3,1,KC_LCLT)
LAYER_MATRIX_KEY(0,3,2,KC_LALT)
LAYER_MATRIX_KEY(0,3,3,KC_LGUI) // Is LGUI the "windows" key?
LAYER_MATRIX_KEY(0,3,4,MO(1))
LAYER_MATRIX_KEY(0,3,5,KC_SPACE
LAYER_MATRIX_KEY(0,3,7,MO(2))
LAYER_MATRIX_KEY(0,3,8,KC_LEFT)
LAYER_MATRIX_KEY(0,3,9,KC_DOWN)
LAYER_MATRIX_KEY(0,3,10,KC_UP)
LAYER_MATRIX_KEY(0,3,11,KC_RIGHT)
// Layer 2
LAYER_MATRIX_KEY(2,0,0,KC_W)
LAYER_MATRIX_KEY(0,0,0,KC_TAB)
LAYER_MATRIX_KEY(0,0,1,KC_Q)
LAYER_MATRIX_KEY(0,0,2,KC_W)
LAYER_MATRIX_KEY(0,0,3,KC_E)
LAYER_MATRIX_KEY(0,0,4,KC_R)
LAYER_MATRIX_KEY(0,0,5,KC_T)
LAYER_MATRIX_KEY(0,0,6,KC_Y)
LAYER_MATRIX_KEY(0,0,7,KC_U)
LAYER_MATRIX_KEY(0,0,8,KC_I)
LAYER_MATRIX_KEY(0,0,9,KC_O)
LAYER_MATRIX_KEY(0,0,10,KC_P)
LAYER_MATRIX_KEY(0,0,11,KC_BSPC)
LAYER_MATRIX_KEY(0,1,0,KC_ESC)
LAYER_MATRIX_KEY(0,1,1,KC_A)
LAYER_MATRIX_KEY(0,1,2,KC_S)
LAYER_MATRIX_KEY(0,1,3,KC_D)
LAYER_MATRIX_KEY(0,1,4,KC_F)
LAYER_MATRIX_KEY(0,1,5,KC_G)
LAYER_MATRIX_KEY(0,1,6,KC_H)
LAYER_MATRIX_KEY(0,1,7,KC_J)
LAYER_MATRIX_KEY(0,1,8,KC_K)
LAYER_MATRIX_KEY(0,1,9,KC_L)
LAYER_MATRIX_KEY(0,1,10,KC_SCLN)
LAYER_MATRIX_KEY(0,1,11,KC_QUOT)
LAYER_MATRIX_KEY(0,2,0,KC_LSFT)
LAYER_MATRIX_KEY(0,2,1,KC_Z)
LAYER_MATRIX_KEY(0,2,2,KC_X)
LAYER_MATRIX_KEY(0,2,3,KC_C)
LAYER_MATRIX_KEY(0,2,4,KC_V)
LAYER_MATRIX_KEY(0,2,5,KC_B)
LAYER_MATRIX_KEY(0,2,6,KC_N)
LAYER_MATRIX_KEY(0,2,7,KC_M)
LAYER_MATRIX_KEY(0,2,8,KC_COMM)
LAYER_MATRIX_KEY(0,2,9,KC_DOT)
LAYER_MATRIX_KEY(0,2,10,KC_SLSH)
LAYER_MATRIX_KEY(0,2,11,KC_ENT)
//LAYER_MATRIX_KEY(0,3,0,KC_??? // Not mapped in standard planck layer 1
LAYER_MATRIX_KEY(0,3,1,KC_LCLT)
LAYER_MATRIX_KEY(0,3,2,KC_LALT)
LAYER_MATRIX_KEY(0,3,3,KC_LGUI) // Is LGUI the "windows" key?
LAYER_MATRIX_KEY(0,3,4,MO(1))
LAYER_MATRIX_KEY(0,3,5,KC_SPACE
LAYER_MATRIX_KEY(0,3,7,MO(2))
LAYER_MATRIX_KEY(0,3,8,KC_LEFT)
LAYER_MATRIX_KEY(0,3,9,KC_DOWN)
LAYER_MATRIX_KEY(0,3,10,KC_UP)
LAYER_MATRIX_KEY(0,3,11,KC_RIGHT)
>;
/*

Loading…
Cancel
Save