示例#1
0
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------

const uint8_t PROGMEM _kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS] = {

  KB_MATRIX_LAYER(  // layout: layer 0: default
// unused
0,
// left hand
    _equal,     _1,         _2,      _3,      _4,    _5, _esc,
_backslash,     _Q,         _W,      _E,      _R,    _T,    1,
      _tab,     _A,         _S,      _D,      _F,    _G,
   _shiftL,     _Z,         _X,      _C,      _V,    _B,    1,
     _guiL, _grave, _backslash, _arrowL, _arrowR,
                                                 _ctrlL, _altL,
                                              0,      0, _home,
                                            _bs,   _del,  _end,
// right hand
        3, _6,      _7,      _8,      _9,         _0,     _dash,
_bracketL, _Y,      _U,      _I,      _O,         _P, _bracketR,
           _H,      _J,      _K,      _L, _semicolon,    _quote,
        1, _N,      _M,  _comma, _period,     _slash,   _shiftR,
               _arrowL, _arrowD, _arrowU,    _arrowR,     _guiR,
 _altR, _ctrlR,
_pageU,      0,      0,
_pageD, _enter, _space ),


  KB_MATRIX_LAYER(  // layout: layer 1: function and symbol keys
// unused
0,
示例#2
0
// ----------------------------------------------------------------------------

// LAYOUT ---------------------------------------------------------------------
const uint8_t PROGMEM _kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS] = {
// LAYER 0
KB_MATRIX_LAYER(
	// unused
	0,	
	// left hand
	KEY_1_Exclamation,	KEY_2_At,	KEY_3_Pound,	KEY_4_Dollar,	KEY_5_Percent,	KEY_6_Caret,	KEY_Escape,	
	KEY_Tab,	KEY_q_Q,	KEY_w_W,	KEY_e_E,	KEY_r_R,	KEY_t_T,	KEY_Tab,	
	KEY_GraveAccent_Tilde,	KEY_a_A,	KEY_s_S,	KEY_d_D,	KEY_f_F,	KEY_g_G,	
	KEY_LeftShift,	KEY_z_Z,	KEY_x_X,	KEY_c_C,	KEY_v_V,	KEY_b_B,	KEY_DeleteForward,	
	1,	KEY_LeftArrow,	KEY_UpArrow,	KEY_DownArrow,	KEY_RightArrow,	
	KEY_LeftGUI,	KEY_LeftAlt,	
	0,	0,	KEY_LeftControl,	
	KEY_DeleteBackspace,	KEY_ReturnEnter,	1,	
	// right hand
	KEY_Escape,	KEY_7_Ampersand,	KEY_8_Asterisk,	KEY_9_LeftParenthesis,	KEY_0_RightParenthesis,	KEY_Dash_Underscore,	KEY_Equal_Plus,	
	KEY_PageUp,	KEY_y_Y,	KEY_u_U,	KEY_i_I,	KEY_o_O,	KEY_p_P,	KEY_Backslash_Pipe,	
	KEY_h_H,	KEY_j_J,	KEY_k_K,	KEY_l_L,	KEY_Semicolon_Colon,	KEY_SingleQuote_DoubleQuote,	
	KEY_PageDown,	KEY_n_N,	KEY_m_M,	KEY_Comma_LessThan,	KEY_Period_GreaterThan,	KEY_Slash_Question,	KEY_RightShift,	
	KEY_Home,	KEY_End,	KEY_LeftBracket_LeftBrace,	KEY_RightBracket_RightBrace,	1,	
	KEY_RightAlt,	KEY_RightGUI,	
	1,	0,	0,	
	1,	KEY_ReturnEnter,	KEY_Spacebar	
),
// LAYER 1
KB_MATRIX_LAYER(
	// unused
	0,	
	// left hand
示例#3
0
// ----------------------------------------------------------------------------

// LAYOUT ---------------------------------------------------------------------
const uint8_t PROGMEM _kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS] = {
// LAYER 0
KB_MATRIX_LAYER(
	// unused
	0,	
	// left hand
	0,	KEY_a_A,	KEY_PrintScreen,	KEY_LeftControl,	KEY_LeftGUI,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	
	1,	0,	0,	0,	0,	0,	
	2,	0,	0,	0,	0,	0,	0,	
	3,	0,	0,	0,	0,	
	0,	0,	
	0,	0,	0,	
	0,	0,	0,	
	// right hand
	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	
	0,	0,	
	0,	0,	0,	
	0,	0,	0	
),
// LAYER 1
KB_MATRIX_LAYER(
	// unused
	0,	
	// left hand