]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - orphan/lightsaber/keymap_winkey.h
ibmpc: Read data line earlier in ISR as possible
[max/tmk_keyboard.git] / orphan / lightsaber / keymap_winkey.h
1 #include "backlight.h"
2
3 static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4     KEYMAP(\
5         ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12, DEL,      INS,    PSCR,    SLCK,       BRK,      \
6         GRV, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC,     NUMLOCK,KP_SLASH,KP_ASTERISK,KP_MINUS, \
7         TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,BSLS,     KP_7,   KP_8,    KP_9,       KP_PLUS,  \
8         CAPS,A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,FN0, ENT,      KP_4,   KP_5,    KP_6,       NO,       \
9         LSFT,     Z,   X,   C,   V,   B,   N,   M,   COMM,DOT, SLSH,NO,  RSFT,     KP_1,   KP_2,    KP_3,       KP_ENTER, \
10         LCTL,LGUI,LALT,               SPC,                NO,  RALT,RGUI,RCTL,     KP_0,   NO,      KP_DOT,     NO),      \
11     KEYMAP(\
12         CALC,MYCM,WSCH,WHOM,MAIL,MUTE,VOLD,VOLU,MSEL,MSTP,MPLY,MPRV,MNXT,TRNS,     TRNS,   WAKE,    PWR,        SLEP,     \
13         FN1, FN2, FN3, FN4, FN5, FN6, FN7, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,     TRNS,   TRNS,    TRNS,       TRNS,     \
14         TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,     TRNS,   TRNS,    TRNS,       TRNS,     \
15         TRNS,TRNS,TRNS,TRNS,PGDN,TRNS,LEFT,DOWN,UP  ,RGHT,TRNS,TRNS,TRNS,TRNS,     TRNS,   TRNS,    TRNS,       TRNS,     \
16         TRNS,     TRNS,TRNS,TRNS,TRNS,PGUP,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,     TRNS,   TRNS,    TRNS,       TRNS,     \
17         TRNS,TRNS,TRNS,               TRNS,               TRNS,TRNS,TRNS,TRNS,     TRNS,   TRNS,    TRNS,       TRNS)
18 };
19
20 static const action_t PROGMEM fn_actions[] = {
21     [0] = ACTION_LAYER_MOMENTARY(1),
22     [1] = ACTION_BACKLIGHT_TOGGLE(),
23     [2] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_ALPHA),
24     [3] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_MODNUM),
25     [4] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_NUMERIC),
26     [5] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FROW),
27     [6] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_BACKSIDE),
28     [7] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_TOPRIGHT)
29 };