diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-08-23 22:29:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 22:29:07 -0400 |
commit | d2ff66a985b938e87fffe55c1d9f1dc55e356f91 (patch) | |
tree | 561b3e203033849573a17f5ac6248077ab687676 /layouts/community/ergodox/supercoder/keymap.c | |
parent | 7260fc3eef98fb7b0e2ed24d3d0d14cf2e613000 (diff) | |
download | qmk_firmware-d2ff66a985b938e87fffe55c1d9f1dc55e356f91.tar.gz qmk_firmware-d2ff66a985b938e87fffe55c1d9f1dc55e356f91.zip |
Creates a layouts/ folder for keymaps shared between keyboards (#1609)
* include variables and .h files as pp directives
* start layout compilation
* split ergodoxes up
* don't compile all layouts for everything
* might seg fault
* reset layouts variable
* actually reset layouts
* include rules.mk instead
* remove includes from rules.mk
* update variable setting
* load visualizer from path
* adds some more examples
* adds more layouts
* more boards added
* more boards added
* adds documentation for layouts
* use lowercase names for LAYOUT_
* add layout.json files for each layout
* add community folder, default keymaps for layouts
* touch-up default layouts
* touch-up layouts, some keyboard rules.mk
* update documentation for layouts
* fix up serial/i2c switches
Diffstat (limited to 'layouts/community/ergodox/supercoder/keymap.c')
-rw-r--r-- | layouts/community/ergodox/supercoder/keymap.c | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/layouts/community/ergodox/supercoder/keymap.c b/layouts/community/ergodox/supercoder/keymap.c new file mode 100644 index 000000000..a42937bd6 --- /dev/null +++ b/layouts/community/ergodox/supercoder/keymap.c | |||
@@ -0,0 +1,75 @@ | |||
1 | /* | ||
2 | * SuperCoder 2000 layout | ||
3 | */ | ||
4 | |||
5 | #include QMK_KEYBOARD_H | ||
6 | |||
7 | /* Layers */ | ||
8 | |||
9 | #define SC2K 0 // default layer | ||
10 | |||
11 | /* The Keymap */ | ||
12 | |||
13 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
14 | |||
15 | /* Keymap 0: Base Layer | ||
16 | * | ||
17 | * ,-----------------------------------------------------. ,-----------------------------------------------------. | ||
18 | * | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | ||
19 | * |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------| | ||
20 | * | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | ||
21 | * |-----------+------+------+------+------+------| | | |------+------+------+------+------+-----------| | ||
22 | * | 0 | 0 | 0 | 0 | 0 | 0 |------| |------| 1 | 1 | 1 | 1 | 1 | 1 | | ||
23 | * |-----------+------+------+------+------+------| 0 | | 1 |------+------+------+------+------+-----------| | ||
24 | * | 0 | 0 | 0 | 0 | 0 | 0 | | | | 1 | 1 | 1 | 1 | 1 | 1 | | ||
25 | * `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------' | ||
26 | * | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | | ||
27 | * `-----------------------------------' `-----------------------------------' | ||
28 | * ,-------------. ,-------------. | ||
29 | * | DONE | DONE | | DONE | DONE | | ||
30 | * ,------|------|------| |------+------+------. | ||
31 | * | | | DONE | | DONE | | | | ||
32 | * | DONE | DONE |------| |------| DONE | DONE | | ||
33 | * | | | DONE | | DONE | | | | ||
34 | * `--------------------' `--------------------' | ||
35 | */ | ||
36 | [SC2K] = LAYOUT_ergodox( | ||
37 | // left hand | ||
38 | KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 | ||
39 | ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 | ||
40 | ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 | ||
41 | ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 | ||
42 | ,KC_0 ,KC_0 ,KC_0 ,KC_0 ,KC_0 | ||
43 | |||
44 | ,KC_ENT ,KC_ENT | ||
45 | ,KC_ENT | ||
46 | ,KC_ENT ,KC_ENT ,KC_ENT | ||
47 | |||
48 | // right hand | ||
49 | ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 | ||
50 | ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 | ||
51 | ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 | ||
52 | ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 | ||
53 | ,KC_1 ,KC_1 ,KC_1 ,KC_1 ,KC_1 | ||
54 | |||
55 | ,KC_ENT ,KC_ENT | ||
56 | ,KC_ENT | ||
57 | ,KC_ENT ,KC_ENT ,KC_ENT | ||
58 | ), | ||
59 | }; | ||
60 | |||
61 | const uint16_t PROGMEM fn_actions[] = { | ||
62 | }; | ||
63 | |||
64 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
65 | { | ||
66 | return MACRO_NONE; | ||
67 | }; | ||
68 | |||
69 | // Runs just one time when the keyboard initializes. | ||
70 | void matrix_init_user(void) { | ||
71 | }; | ||
72 | |||
73 | // Runs constantly in the background, in a loop. | ||
74 | void matrix_scan_user(void) { | ||
75 | } | ||