]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/sixkeyboard/sixkeyboard.h
[Keyboard] fixed pins for numpad_5x4 layout (#6311)
[qmk_firmware.git] / keyboards / sixkeyboard / sixkeyboard.h
1 #ifndef SIXKEYBOARD_H
2 #define SIXKEYBOARD_H
3
4 #include "quantum.h"
5
6 // This macro is an example of using a non-standard row-column matrix. The
7 // keyboard in question had 11 rows and 8 columns, but the rows were not all
8 // horizontal, and the columns were not all vertical. For example, row 2
9 // contained "Print Screen", "N", "M", ",", ".", "/", "Right Shift", and
10 // "Left Alt". Column 0 contained "F6", "7", "O", "'", "Q", "D", "B",
11 // "Left Alt", "Up Arrow", and "Down Arrow".
12 //
13 // The macro makes programming the keys easier and in a more straight-forward
14 // manner because it realigns the keys into a 6x15 sensible keyboard layout
15 // instead of the obtuse 11x8 matrix.
16
17
18 /*
19  * ┌───┬───┬───┐
20  * │ A │ B │ C │
21  * ├───┼───┼───┤
22  * │ D │ E │ F │
23  * └───┴───┴───┘
24  */
25 #define LAYOUT( \
26     k00, k01, k02, \
27     k10, k11, k12  \
28   ) { \
29     { k00, k01, k02 }, \
30     { k10, k11, k12 }  \
31 }
32
33
34 #endif