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 | |
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')
-rw-r--r-- | layouts/community/ergodox/supercoder/config.h | 9 | ||||
-rw-r--r-- | layouts/community/ergodox/supercoder/keymap.c | 75 | ||||
-rw-r--r-- | layouts/community/ergodox/supercoder/makefile.mk | 6 | ||||
-rw-r--r-- | layouts/community/ergodox/supercoder/readme.md | 29 |
4 files changed, 119 insertions, 0 deletions
diff --git a/layouts/community/ergodox/supercoder/config.h b/layouts/community/ergodox/supercoder/config.h new file mode 100644 index 000000000..8c191a87c --- /dev/null +++ b/layouts/community/ergodox/supercoder/config.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef CONFIG_USER_H | ||
2 | #define CONFIG_USER_H 1 | ||
3 | |||
4 | #include QMK_KEYBOARD_CONFIG_H | ||
5 | |||
6 | #undef LOCKING_SUPPORT_ENABLE | ||
7 | #undef LOCKING_RESYNC_ENABLE | ||
8 | |||
9 | #endif | ||
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 | } | ||
diff --git a/layouts/community/ergodox/supercoder/makefile.mk b/layouts/community/ergodox/supercoder/makefile.mk new file mode 100644 index 000000000..41a195d9c --- /dev/null +++ b/layouts/community/ergodox/supercoder/makefile.mk | |||
@@ -0,0 +1,6 @@ | |||
1 | BOOTMAGIC_ENABLE=no | ||
2 | COMMAND_ENABLE=no | ||
3 | SLEEP_LED_ENABLE=no | ||
4 | UNICODE_ENABLE=no | ||
5 | MOUSEKEY_ENABLE=no | ||
6 | EXTRAKEY_ENABLE=no | ||
diff --git a/layouts/community/ergodox/supercoder/readme.md b/layouts/community/ergodox/supercoder/readme.md new file mode 100644 index 000000000..7f2c9ef69 --- /dev/null +++ b/layouts/community/ergodox/supercoder/readme.md | |||
@@ -0,0 +1,29 @@ | |||
1 | SuperCoder 2000 layout for the ErgoDox | ||
2 | ================================================== | ||
3 | |||
4 |  | ||
5 | |||
6 | Ever found yourself in need of entering binary codes rapidly? Ever wanted to use | ||
7 | all ten fingers to do so? Ever felt your SuperCoder 2000 too limiting, by only | ||
8 | having three buttons? We heard you! With this layout for the ErgoDox EZ, you | ||
9 | will be able to tap in binary at an unparalleled speed and accuracy! Efficiency | ||
10 | never seen before! | ||
11 | |||
12 | Behold the Ultimate SuperCoder 2000 layout! | ||
13 | |||
14 |  | ||
15 | |||
16 | ### To use it... | ||
17 | |||
18 | To use this piece of top quality engineering, you can either | ||
19 | [download the hex file][hex] we have prepared for you, or you can compile it on | ||
20 | your own: | ||
21 | |||
22 | [hex]: https://raw.githubusercontent.com/algernon/ergodox-supercoder/master/supercoder.hex | ||
23 | |||
24 | ``` | ||
25 | $ git clone https://github.com/qmk/qmk_firmware.git | ||
26 | $ cd qmk_firmware/keyboards/ergodox | ||
27 | $ git clone https://github.com/algernon/ergodox-supercoder.git keymaps/supercoder | ||
28 | $ make LAYOUT_ergodox=supercoder | ||
29 | ``` | ||