Add submap

This commit is contained in:
Manna Harbour 2020-10-27 21:19:26 +11:00
parent eafae69154
commit 2a8f927a3b
2 changed files with 28 additions and 6 deletions

View File

@ -560,9 +560,20 @@ layout is mapped onto keyboards with different physical layouts as a subset.
#+BEGIN_SRC C :noweb yes :padline no :tangle miryoku.keymap #+BEGIN_SRC C :noweb yes :padline no :tangle miryoku.keymap
// <<header>> // <<header>>
#include <behaviors.dtsi> //#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> //#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h> //#include <dt-bindings/zmk/bt.h>
#define SUBMAP(\
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09,\
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19,\
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29,\
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39\
)\
&none K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 &none \
&none K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 &none \
&none K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 &none \
K32 K33 K34 K35 K36 K37
<<table-layer-defines()>> <<table-layer-defines()>>

View File

@ -1,8 +1,19 @@
// generated from miryoku_zmk.org -*- buffer-read-only: t -*- // generated from miryoku_zmk.org -*- buffer-read-only: t -*-
#include <behaviors.dtsi> //#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> //#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h> //#include <dt-bindings/zmk/bt.h>
#define SUBMAP(\
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09,\
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19,\
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29,\
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39\
)\
&none K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 &none \
&none K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 &none \
&none K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 &none \
K32 K33 K34 K35 K36 K37
#define BASE 0 #define BASE 0
#define MBO 1 #define MBO 1