summaryrefslogtreecommitdiff
path: root/keyboard/nerd/keymap_80_ansi150.c
diff options
context:
space:
mode:
authorRalf Schmitt <ralf@bunkertor.net>2014-11-23 13:29:07 +0100
committerRalf Schmitt <ralf@bunkertor.net>2015-01-18 11:45:24 +0100
commit2d740203318e2b0164e584a853bd0172dd9127cb (patch)
treee121f8e3ee75fbe4698eca805dd9826c316805d8 /keyboard/nerd/keymap_80_ansi150.c
parentd9b5f5110ebf3e7da6a11e8640fb4367114aed67 (diff)
Added NerD 80% (TKL) support
Diffstat (limited to 'keyboard/nerd/keymap_80_ansi150.c')
-rw-r--r--keyboard/nerd/keymap_80_ansi150.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/keyboard/nerd/keymap_80_ansi150.c b/keyboard/nerd/keymap_80_ansi150.c
new file mode 100644
index 0000000000..a2ba279c55
--- /dev/null
+++ b/keyboard/nerd/keymap_80_ansi150.c
@@ -0,0 +1,33 @@
+#include "keymap_common.h"
+#include "backlight.h"
+
+const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Layer 0: Default */
+ KEYMAP_ANSI150(ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK, BRK, \
+ GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, INS, HOME, PGUP, \
+ TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, DEL, END, PGDN, \
+ CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
+ LSFT, Z, X, C, V, B, N, M, COMM,DOT, SLSH,RSFT, UP, \
+ LCTL,LGUI,LALT, SPC, RALT,FN0, RCTL, LEFT,DOWN,RGHT),
+ /* Layer 1: Space Fn */
+ KEYMAP_ANSI150(TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS, \
+ TRNS,TRNS,TRNS,TRNS,T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