pana_m8: Add initial files
[tmk_keyboard.git] / keyboard / pana_m8 / unimap.c
CommitLineData
353afe87 1#include "unimap.h"
2#include "action.h"
3#include "actionmap.h"
4#include "hook.h"
5
6
7#define UMAP( \
8 K29,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K2D,K2E,K2A, K49,K4C, K3A, \
9 K2B,K14,K1A,K08,K15,K17,K1C,K18,K0C,K12,K13,K35,K2F,K30, K3B, \
10 K78,K04,K16,K07,K09,K0A,K0B,K0D,K0E,K0F,K33,K34, K28, K52, K3C, \
11 K79,K1D,K1B,K06,K19,K05,K11,K10,K36,K37,K38, K50,K4F, K3D, \
12 K2C, K51, K4A \
13) UNIMAP ( \
14 NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \
15 K29, K3A,K3B,K3C,K3D,NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \
16 K35,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K2D,K2E,NO, K2A, K49,K4A,NO, NO, NO, NO, NO, \
17 K2B,K14,K1A,K08,K15,K17,K1C,K18,K0C,K12,K13,K2F,K30, NO, K4C,NO, NO, NO, NO, NO, NO, \
18 NO, K04,K16,K07,K09,K0A,K0B,K0D,K0E,K0F,K33,K34, NO, K28, NO, NO, NO, NO, \
19 K79,NO, K1D,K1B,K06,K19,K05,K11,K10,K36,K37,K38, NO, NO, K52, NO, NO, NO, NO, \
20 K78,NO, NO, NO, K2C, NO, NO, NO, NO, NO, NO, K50,K51,K4F, NO, NO, NO \
21)
22
23#define AC_L1 ACTION_LAYER_MOMENTARY(1)
24
25#ifdef KEYMAP_SECTION_ENABLE
26const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = {
27#else
28const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = {
29#endif
30 [0] = UMAP(
31 ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, INS, DEL, F1,
32 TAB, Q, W, E, R, T, Y, U, I, O, P, GRV, LBRC,RBRC, F2,
33 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, UP, F3,
34 LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, LEFT,RGHT, F4,
35 SPC, DOWN, HOME
36 ),
37};
38
39
40const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = {
41 { UNIMAP_ESC, UNIMAP_1, UNIMAP_2, UNIMAP_3, UNIMAP_4, UNIMAP_5, UNIMAP_6, UNIMAP_7 },
42 { UNIMAP_8, UNIMAP_9, UNIMAP_0, UNIMAP_MINS, UNIMAP_EQL, UNIMAP_BSPC, UNIMAP_INS, UNIMAP_DEL },
43 { UNIMAP_TAB, UNIMAP_Q, UNIMAP_W, UNIMAP_E, UNIMAP_R, UNIMAP_T, UNIMAP_Y, UNIMAP_U },
44 { UNIMAP_I, UNIMAP_O, UNIMAP_P, UNIMAP_GRV, UNIMAP_LBRC, UNIMAP_RBRC, UNIMAP_F2, UNIMAP_F1 },
45 { UNIMAP_LCTL, UNIMAP_A, UNIMAP_S, UNIMAP_D, UNIMAP_F, UNIMAP_G, UNIMAP_H, UNIMAP_J },
46 { UNIMAP_K, UNIMAP_L, UNIMAP_SCLN, UNIMAP_QUOT, UNIMAP_ENT, UNIMAP_UP, UNIMAP_F3, UNIMAP_F4 },
47 { UNIMAP_LSFT, UNIMAP_Z, UNIMAP_X, UNIMAP_C, UNIMAP_V, UNIMAP_B, UNIMAP_N, UNIMAP_M },
48 { UNIMAP_SPC, UNIMAP_COMM, UNIMAP_DOT, UNIMAP_SLSH, UNIMAP_LEFT, UNIMAP_RIGHT, UNIMAP_DOWN, UNIMAP_HOME }
49};
50
Imprint / Impressum