diff options
Diffstat (limited to 'keyboards/bpiphany/tiger_lily')
-rw-r--r-- | keyboards/bpiphany/tiger_lily/config.h | 100 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/info.json | 13 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/default/keymap.c | 11 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/default/rules.mk | 9 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/default_ansi/keymap.c | 11 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/default_ansi/readme.md | 3 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/default_ansi/rules.mk | 9 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/via/config.h | 18 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/via/keymap.c | 40 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/keymaps/via/rules.mk | 10 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/matrix.c | 155 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/readme.md | 16 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/rules.mk | 22 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/tiger_lily.c | 1 | ||||
-rw-r--r-- | keyboards/bpiphany/tiger_lily/tiger_lily.h | 64 |
16 files changed, 483 insertions, 0 deletions
diff --git a/keyboards/bpiphany/tiger_lily/config.h b/keyboards/bpiphany/tiger_lily/config.h new file mode 100644 index 000000000..54a1c2e7f --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/config.h | |||
@@ -0,0 +1,100 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <[email protected]> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0x4245 //BE | ||
24 | #define PRODUCT_ID 0x544C //TL | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Bathroom Epiphanies | ||
27 | #define PRODUCT tiger_lily | ||
28 | |||
29 | /* | ||
30 | * Frosty Flake Rev. 20140521 made by Bathroom Ephiphanies | ||
31 | * Ported from the Bathroom Epiphanies TMK Firmware: | ||
32 | * https://github.com/BathroomEpiphanies/epiphanies_tmk_keyboard/tree/master/be_controllers | ||
33 | * | ||
34 | */ | ||
35 | |||
36 | /* key matrix size */ | ||
37 | #define MATRIX_ROWS 8 // Row0 - Row7 in the schematic | ||
38 | #define MATRIX_COLS 18 // ColA - ColR in the schematic | ||
39 | |||
40 | /* | ||
41 | * Keyboard Matrix Assignments | ||
42 | * | ||
43 | * MATRIX_ROW_PINS and MATRIX_COL_PINS aren't actually used and are included | ||
44 | * for data driven compatibility. | ||
45 | */ | ||
46 | #define MATRIX_ROW_PINS { C2, B3, B4, B2, B1, C7, B6, B5 } | ||
47 | #define MATRIX_COL_PINS { NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN } | ||
48 | #define UNUSED_PINS { B0, C4, D3 } | ||
49 | |||
50 | #define LED_NUM_LOCK_PIN C5 | ||
51 | #define LED_CAPS_LOCK_PIN C6 | ||
52 | #define LED_SCROLL_LOCK_PIN B7 | ||
53 | #define LED_PIN_ON_STATE 0 | ||
54 | |||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
56 | #define DEBOUNCE 5 | ||
57 | |||
58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
59 | #define LOCKING_SUPPORT_ENABLE | ||
60 | /* Locking resynchronize hack */ | ||
61 | #define LOCKING_RESYNC_ENABLE | ||
62 | |||
63 | /* | ||
64 | * Force NKRO | ||
65 | * | ||
66 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
67 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
68 | * makefile for this to work.) | ||
69 | * | ||
70 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
71 | * until the next keyboard reset. | ||
72 | * | ||
73 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
74 | * fully operational during normal computer usage. | ||
75 | * | ||
76 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
77 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
78 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
79 | * power-up. | ||
80 | * | ||
81 | */ | ||
82 | //#define FORCE_NKRO | ||
83 | |||
84 | /* | ||
85 | * Feature disable options | ||
86 | * These options are also useful to firmware size reduction. | ||
87 | */ | ||
88 | |||
89 | /* disable debug print */ | ||
90 | //#define NO_DEBUG | ||
91 | |||
92 | /* disable print */ | ||
93 | //#define NO_PRINT | ||
94 | |||
95 | /* disable action features */ | ||
96 | //#define NO_ACTION_LAYER | ||
97 | //#define NO_ACTION_TAPPING | ||
98 | //#define NO_ACTION_ONESHOT | ||
99 | //#define NO_ACTION_MACRO | ||
100 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/bpiphany/tiger_lily/info.json b/keyboards/bpiphany/tiger_lily/info.json new file mode 100644 index 000000000..aacd06dcb --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/info.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "keyboard_name": "tiger_lily", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.25, "y":0}, {"label":"Scroll Lock", "x":16.25, "y":0}, {"label":"Pause", "x":17.25, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"label":"Backspace", "x":13, "y":1.5, "w":2}, {"label":"Insert", "x":15.25, "y":1.5}, {"label":"Home", "x":16.25, "y":1.5}, {"label":"PgUp", "x":17.25, "y":1.5}, {"label":"Num Lock", "x":18.5, "y":1.5}, {"label":"/", "x":19.5, "y":1.5}, {"label":"*", "x":20.5, "y":1.5}, {"label":"-", "x":21.5, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"Delete", "x":15.25, "y":2.5}, {"label":"End", "x":16.25, "y":2.5}, {"label":"PgDn", "x":17.25, "y":2.5}, {"label":"7", "x":18.5, "y":2.5}, {"label":"8", "x":19.5, "y":2.5}, {"label":"9", "x":20.5, "y":2.5}, {"label":"+", "x":21.5, "y":2.5, "h":2}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, {"label":"4", "x":18.5, "y":3.5}, {"label":"5", "x":19.5, "y":3.5}, {"label":"6", "x":20.5, "y":3.5}, {"label":"Shift", "x":0, "y":4.5, "w":1.25}, {"label":"|", "x":1.25, "y":4.5}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, {"label":"\u2191", "x":16.25, "y":4.5}, {"label":"1", "x":18.5, "y":4.5}, {"label":"2", "x":19.5, "y":4.5}, {"label":"3", "x":20.5, "y":4.5}, {"label":"Enter", "x":21.5, "y":4.5, "h":2}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"label":"Alt", "x":10, "y":5.5, "w":1.25}, {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, {"label":"\u2190", "x":15.25, "y":5.5}, {"label":"\u2193", "x":16.25, "y":5.5}, {"label":"\u2192", "x":17.25, "y":5.5}, {"label":"0", "x":18.5, "y":5.5, "w":2}, {"label":".", "x":20.5, "y":5.5}] | ||
8 | }, | ||
9 | "LAYOUT_fullsize_ansi": { | ||
10 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.25, "y":0}, {"label":"Scroll Lock", "x":16.25, "y":0}, {"label":"Pause", "x":17.25, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"label":"Backspace", "x":13, "y":1.5, "w":2}, {"label":"Insert", "x":15.25, "y":1.5}, {"label":"Home", "x":16.25, "y":1.5}, {"label":"PgUp", "x":17.25, "y":1.5}, {"label":"Num Lock", "x":18.5, "y":1.5}, {"label":"/", "x":19.5, "y":1.5}, {"label":"*", "x":20.5, "y":1.5}, {"label":"-", "x":21.5, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"Delete", "x":15.25, "y":2.5}, {"label":"End", "x":16.25, "y":2.5}, {"label":"PgDn", "x":17.25, "y":2.5}, {"label":"7", "x":18.5, "y":2.5}, {"label":"8", "x":19.5, "y":2.5}, {"label":"9", "x":20.5, "y":2.5}, {"label":"+", "x":21.5, "y":2.5, "h":2}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, {"label":"4", "x":18.5, "y":3.5}, {"label":"5", "x":19.5, "y":3.5}, {"label":"6", "x":20.5, "y":3.5}, {"label":"Shift", "x":0, "y":4.5, "w":2.25}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, {"label":"\u2191", "x":16.25, "y":4.5}, {"label":"1", "x":18.5, "y":4.5}, {"label":"2", "x":19.5, "y":4.5}, {"label":"3", "x":20.5, "y":4.5}, {"label":"Enter", "x":21.5, "y":4.5, "h":2}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"label":"Alt", "x":10, "y":5.5, "w":1.25}, {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, {"label":"\u2190", "x":15.25, "y":5.5}, {"label":"\u2193", "x":16.25, "y":5.5}, {"label":"\u2192", "x":17.25, "y":5.5}, {"label":"0", "x":18.5, "y":5.5, "w":2}, {"label":".", "x":20.5, "y":5.5}] | ||
11 | } | ||
12 | } | ||
13 | } | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/default/keymap.c b/keyboards/bpiphany/tiger_lily/keymaps/default/keymap.c new file mode 100644 index 000000000..5c9ac8369 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/default/keymap.c | |||
@@ -0,0 +1,11 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | [0] = LAYOUT( | ||
5 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_SLCK,KC_PAUS, | ||
6 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL,KC_BSPC, KC_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, | ||
7 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC,KC_RBRC,KC_BSLS, KC_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9,KC_PPLS, | ||
8 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, | ||
9 | KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3,KC_PENT, | ||
10 | KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0,KC_PDOT) | ||
11 | }; \ No newline at end of file | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/default/readme.md b/keyboards/bpiphany/tiger_lily/keymaps/default/readme.md new file mode 100644 index 000000000..4626859df --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for tiger_lily | |||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/default/rules.mk b/keyboards/bpiphany/tiger_lily/keymaps/default/rules.mk new file mode 100644 index 000000000..adb07adf7 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/default/rules.mk | |||
@@ -0,0 +1,9 @@ | |||
1 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
2 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
3 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
4 | CONSOLE_ENABLE = no # Console for debug | ||
5 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
6 | NKRO_ENABLE = yes | ||
7 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
8 | AUDIO_ENABLE = no # Audio output | ||
9 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/keymap.c b/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/keymap.c new file mode 100644 index 000000000..186a826f1 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/keymap.c | |||
@@ -0,0 +1,11 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | [0] = LAYOUT_fullsize_ansi( | ||
5 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_SLCK,KC_PAUS, | ||
6 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL,KC_BSPC, KC_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, | ||
7 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC,KC_RBRC,KC_BSLS, KC_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9,KC_PPLS, | ||
8 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, | ||
9 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3,KC_PENT, | ||
10 | KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0,KC_PDOT) | ||
11 | }; \ No newline at end of file | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/readme.md b/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/readme.md new file mode 100644 index 000000000..2cb8c8993 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/readme.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # default_ansi | ||
2 | |||
3 | A standard fullsize ANSI-layout keymap for Tiger Lily-powered keyboards. | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/rules.mk b/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/rules.mk new file mode 100644 index 000000000..3224016bb --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/default_ansi/rules.mk | |||
@@ -0,0 +1,9 @@ | |||
1 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
2 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
3 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
4 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
5 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
6 | NKRO_ENABLE = yes | ||
7 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
8 | AUDIO_ENABLE = no # Audio output | ||
9 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/via/config.h b/keyboards/bpiphany/tiger_lily/keymaps/via/config.h new file mode 100644 index 000000000..356dc9fdb --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/via/config.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* Copyright 2021 Fehmer | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #pragma once | ||
17 | |||
18 | #define DYNAMIC_KEYMAP_LAYER_COUNT 3 \ No newline at end of file | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/via/keymap.c b/keyboards/bpiphany/tiger_lily/keymaps/via/keymap.c new file mode 100644 index 000000000..076516052 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/via/keymap.c | |||
@@ -0,0 +1,40 @@ | |||
1 | /* Copyright 2021 Fehmer | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [0] = LAYOUT( | ||
20 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_SLCK,KC_PAUS, | ||
21 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL,KC_BSPC, KC_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, | ||
22 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC,KC_RBRC,KC_BSLS, KC_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9,KC_PPLS, | ||
23 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, | ||
24 | KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3,KC_PENT, | ||
25 | KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0,KC_PDOT), | ||
26 | [1] = LAYOUT( | ||
27 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, | ||
28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, | ||
32 | KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS), | ||
33 | [2] = LAYOUT( | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, | ||
39 | KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS) | ||
40 | }; \ No newline at end of file | ||
diff --git a/keyboards/bpiphany/tiger_lily/keymaps/via/rules.mk b/keyboards/bpiphany/tiger_lily/keymaps/via/rules.mk new file mode 100644 index 000000000..a0b328e06 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/keymaps/via/rules.mk | |||
@@ -0,0 +1,10 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
3 | MOUSEKEY_ENABLE = yes | ||
4 | EXTRAKEY_ENABLE = yes | ||
5 | CONSOLE_ENABLE = no | ||
6 | COMMAND_ENABLE = yes | ||
7 | NKRO_ENABLE = yes | ||
8 | BACKLIGHT_ENABLE = no | ||
9 | AUDIO_ENABLE = no | ||
10 | RGBLIGHT_ENABLE = no | ||
diff --git a/keyboards/bpiphany/tiger_lily/matrix.c b/keyboards/bpiphany/tiger_lily/matrix.c new file mode 100644 index 000000000..47a92268c --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/matrix.c | |||
@@ -0,0 +1,155 @@ | |||
1 | /* | ||
2 | Copyright 2017 Gabriel Young <[email protected]> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include <stdint.h> | ||
19 | #include <stdbool.h> | ||
20 | #include <avr/io.h> | ||
21 | #include <util/delay.h> | ||
22 | #include "print.h" | ||
23 | #include "debug.h" | ||
24 | #include "util.h" | ||
25 | #include "matrix.h" | ||
26 | |||
27 | #ifndef DEBOUNCE | ||
28 | # define DEBOUNCE 5 | ||
29 | #endif | ||
30 | static uint8_t debouncing = DEBOUNCE; | ||
31 | |||
32 | static matrix_row_t matrix[MATRIX_ROWS]; | ||
33 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | ||
34 | |||
35 | __attribute__ ((weak)) | ||
36 | void matrix_init_kb(void) { | ||
37 | matrix_init_user(); | ||
38 | } | ||
39 | |||
40 | __attribute__ ((weak)) | ||
41 | void matrix_scan_kb(void) { | ||
42 | matrix_scan_user(); | ||
43 | } | ||
44 | |||
45 | __attribute__ ((weak)) | ||
46 | void matrix_init_user(void) { | ||
47 | } | ||
48 | |||
49 | __attribute__ ((weak)) | ||
50 | void matrix_scan_user(void) { | ||
51 | } | ||
52 | |||
53 | static matrix_row_t scan_col(void) { | ||
54 | return ( | ||
55 | (PINC&(1<<2) ? 0 : ((matrix_row_t)1<<0)) | \ | ||
56 | (PINB&(1<<3) ? 0 : ((matrix_row_t)1<<1)) | \ | ||
57 | (PINB&(1<<4) ? 0 : ((matrix_row_t)1<<2)) | \ | ||
58 | (PINB&(1<<2) ? 0 : ((matrix_row_t)1<<3)) | \ | ||
59 | (PINB&(1<<1) ? 0 : ((matrix_row_t)1<<4)) | \ | ||
60 | (PINC&(1<<7) ? 0 : ((matrix_row_t)1<<5)) | \ | ||
61 | (PINB&(1<<6) ? 0 : ((matrix_row_t)1<<6)) | \ | ||
62 | (PINB&(1<<5) ? 0 : ((matrix_row_t)1<<7)) | ||
63 | ); | ||
64 | } | ||
65 | |||
66 | static void select_col(uint8_t col) { | ||
67 | switch (col) { | ||
68 | case 0: PORTD = (PORTD & ~0b01110111) | 0b01110110; break; \ | ||
69 | case 1: PORTD = (PORTD & ~0b01110111) | 0b01100001; break; \ | ||
70 | case 2: PORTD = (PORTD & ~0b01110111) | 0b01100101; break; \ | ||
71 | case 3: PORTD = (PORTD & ~0b01110111) | 0b00000011; break; \ | ||
72 | case 4: PORTD = (PORTD & ~0b01110111) | 0b00000111; break; \ | ||
73 | case 5: PORTD = (PORTD & ~0b01110111) | 0b00010011; break; \ | ||
74 | case 6: PORTD = (PORTD & ~0b01110111) | 0b00010111; break; \ | ||
75 | case 7: PORTD = (PORTD & ~0b01110111) | 0b00100011; break; \ | ||
76 | case 8: PORTD = (PORTD & ~0b01110111) | 0b00100111; break; \ | ||
77 | case 9: PORTD = (PORTD & ~0b01110111) | 0b00110011; break; \ | ||
78 | case 10: PORTD = (PORTD & ~0b01110111) | 0b01110010; break; \ | ||
79 | case 11: PORTD = (PORTD & ~0b01110111) | 0b01100110; break; \ | ||
80 | case 12: PORTD = (PORTD & ~0b01110111) | 0b01110000; break; \ | ||
81 | case 13: PORTD = (PORTD & ~0b01110111) | 0b01100100; break; \ | ||
82 | case 14: PORTD = (PORTD & ~0b01110111) | 0b01100000; break; \ | ||
83 | case 15: PORTD = (PORTD & ~0b01110111) | 0b01000111; break; \ | ||
84 | case 16: PORTD = (PORTD & ~0b01110111) | 0b01000011; break; \ | ||
85 | case 17: PORTD = (PORTD & ~0b01110111) | 0b00110111; break; | ||
86 | } | ||
87 | } | ||
88 | |||
89 | void matrix_init(void) { | ||
90 | /* Column output pins */ \ | ||
91 | DDRD |= 0b01110111; \ | ||
92 | /* Row input pins */ \ | ||
93 | DDRC &= ~0b10000100; \ | ||
94 | DDRB &= ~0b01111110; \ | ||
95 | PORTC |= 0b10000100; \ | ||
96 | PORTB |= 0b01111110; | ||
97 | |||
98 | for (uint8_t i=0; i < MATRIX_ROWS; i++) | ||
99 | matrix[i] = matrix_debouncing[i] = 0; | ||
100 | |||
101 | matrix_init_quantum(); | ||
102 | } | ||
103 | |||
104 | uint8_t matrix_scan(void) { | ||
105 | for (uint8_t col = 0; col < MATRIX_COLS; col++) { | ||
106 | select_col(col); | ||
107 | _delay_us(3); | ||
108 | matrix_row_t col_scan = scan_col(); | ||
109 | for (uint8_t row = 0; row < MATRIX_ROWS; row++) { | ||
110 | bool prev_bit = matrix_debouncing[row] & ((matrix_row_t)1<<col); | ||
111 | bool curr_bit = col_scan & (1<<row); | ||
112 | if (prev_bit != curr_bit) { | ||
113 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); | ||
114 | debouncing = DEBOUNCE; | ||
115 | } | ||
116 | } | ||
117 | } | ||
118 | |||
119 | if (debouncing) { | ||
120 | if (--debouncing) | ||
121 | _delay_ms(1); | ||
122 | else | ||
123 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) | ||
124 | matrix[i] = matrix_debouncing[i]; | ||
125 | } | ||
126 | |||
127 | matrix_scan_quantum(); | ||
128 | return 1; | ||
129 | } | ||
130 | |||
131 | inline matrix_row_t matrix_get_row(uint8_t row) { | ||
132 | return matrix[row]; | ||
133 | } | ||
134 | |||
135 | void matrix_print(void) { | ||
136 | #ifndef NO_PRINT | ||
137 | print("\nr\\c ABCDEFGHIJKLMNOPQR\n"); | ||
138 | for (uint8_t row = 0; row < MATRIX_ROWS; row++) { | ||
139 | matrix_row_t matrix_row = matrix_get_row(row); | ||
140 | xprintf("%02X: ", row); | ||
141 | for (uint8_t col = 0; col < MATRIX_COLS; col++) { | ||
142 | bool curr_bit = matrix_row & (1<<col); | ||
143 | xprintf("%c", curr_bit ? '*' : '.'); | ||
144 | } | ||
145 | print("\n"); | ||
146 | } | ||
147 | #endif | ||
148 | } | ||
149 | |||
150 | uint8_t matrix_key_count(void) { | ||
151 | uint8_t count = 0; | ||
152 | for (uint8_t row = 0; row < MATRIX_ROWS; row++) | ||
153 | count += bitpop32(matrix[row]); | ||
154 | return count; | ||
155 | } | ||
diff --git a/keyboards/bpiphany/tiger_lily/readme.md b/keyboards/bpiphany/tiger_lily/readme.md new file mode 100644 index 000000000..1fcb6c3d6 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/readme.md | |||
@@ -0,0 +1,16 @@ | |||
1 | tiger_lily | ||
2 | ========== | ||
3 | |||
4 | This is the firmware for Rev. 20161114 of the Tiger Lily controller by [Bathroom Epiphanies](http://bathroomepiphanies.com/controllers/), a replacement controller for the [Filco Majestouch 2 104 key](https://mechanicalkeyboards.com/shop/index.php?l=product_detail&p=1819). Bathroom Epiphanies has advised that the source is also compatible with the Black Petal controller, however I do not own an example to test against. | ||
5 | |||
6 | The code was adapted from the [BathroomEpiphanies TMK Firmware](https://github.com/BathroomEpiphanies/epiphanies_tmk_keyboard/tree/master/be_controllers). | ||
7 | |||
8 | Keyboard Maintainer: QMK Community | ||
9 | Hardware Supported: Tiger Lily | ||
10 | Hardware Availability: https://geekhack.org/index.php?topic=46700.0 | ||
11 | |||
12 | Make example for this keyboard (after setting up your build environment): | ||
13 | |||
14 | make bpiphany/tiger_lily:default | ||
15 | |||
16 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/bpiphany/tiger_lily/rules.mk b/keyboards/bpiphany/tiger_lily/rules.mk new file mode 100644 index 000000000..3709394a1 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u2 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | AUDIO_ENABLE = no # Audio output | ||
18 | |||
19 | CUSTOM_MATRIX = yes | ||
20 | SRC += matrix.c | ||
21 | |||
22 | LAYOUTS = fullsize_ansi | ||
diff --git a/keyboards/bpiphany/tiger_lily/tiger_lily.c b/keyboards/bpiphany/tiger_lily/tiger_lily.c new file mode 100644 index 000000000..f57f8b5f5 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/tiger_lily.c | |||
@@ -0,0 +1 @@ | |||
#include "tiger_lily.h" | |||
diff --git a/keyboards/bpiphany/tiger_lily/tiger_lily.h b/keyboards/bpiphany/tiger_lily/tiger_lily.h new file mode 100644 index 000000000..b1a872e21 --- /dev/null +++ b/keyboards/bpiphany/tiger_lily/tiger_lily.h | |||
@@ -0,0 +1,64 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | #define XXX KC_NO | ||
6 | |||
7 | // This a shortcut to help you visually see your layout. | ||
8 | // The following is an example using the Planck MIT layout | ||
9 | // The first section contains all of the arguements | ||
10 | // The second converts the arguments into a two-dimensional array | ||
11 | |||
12 | /* | ||
13 | Matrix col/row mapping | ||
14 | |||
15 | ,----. ,-------------------. ,-------------------. ,-------------------. ,--------------. | ||
16 | | J6 | | I4 | H4 | H2 | H6 | | A7 | E6 | D2 | D4 | | B4 | B7 | B6 | B0 | | C7 | C5 | A5 | | ||
17 | `----' `-------------------' `-------------------' `-------------------' `--------------' | ||
18 | ,-------------------------------------------------------------------------. ,--------------. ,-------------------. | ||
19 | | J4 | J7 | I7 | H7 | G7 | G4 | F4 | F7 | E7 | D7 | R7 | R4 | E4 | B2 | | L4 | O4 | Q4 | | K1 | L1 | Q1 | Q0 | | ||
20 | |-------------------------------------------------------------------------| |--------------| |-------------------| | ||
21 | | J2 | J5 | I5 | H5 | G5 | G2 | F2 | F5 | E5 | D5 | R5 | R2 | E2 | B3 | | K4 | O7 | Q7 | | K5 | L5 | Q5 | O5 | | ||
22 | |-------------------------------------------------------------------------| '--------------' |-------------- | | ||
23 | | O5 | J3 | I3 | H3 | G3 | G6 | F6 | F3 | E3 | D3 | R3 | R6 | B1 | | K2 | L2 | Q2 | | | ||
24 | |-------------------------------------------------------------------------| ,----. |-------------------| | ||
25 | | N2 | J1 | I1 | H1 | G1 | G0 | F0 | F1 | E1 | D1 | R0 | N3 | | O6 | | K3 | L3 | Q3 | O3 | | ||
26 | |-------------------------------------------------------------------------| ,--------------. |-------------- | | ||
27 | | A4 | P2 | C6 | K6 | C0 | M3 | D0 | A1 | | O0 | K0 | L0 | | L6 | Q6 | | | ||
28 | `-------------------------------------------------------------------------' `--------------' `-------------------' | ||
29 | */ | ||
30 | #define LAYOUT( \ | ||
31 | KJ6, KI4, KH4, KH2, KH6, KA7, KE6, KD2, KD4, KB4, KB7, KB6, KB0, KC7, KC5, KA5, \ | ||
32 | KJ4, KJ7, KI7, KH7, KG7, KG4, KF4, KF7, KE7, KD7, KR7, KR4, KE4, KB2, KL4, KO4, KQ4, KK1, KL1, KQ1, KQ0, \ | ||
33 | KJ2, KJ5, KI5, KH5, KG5, KG2, KF2, KF5, KE5, KD5, KR5, KR2, KE2, KB3, KK4, KO7, KQ7, KK5, KL5, KQ5, KO5, \ | ||
34 | KI2, KJ3, KI3, KH3, KG3, KG6, KF6, KF3, KE3, KD3, KR3, KR6, KB1, KK2, KL2, KQ2, \ | ||
35 | KN2, KI6, KJ1, KI1, KH1, KG1, KG0, KF0, KF1, KE1, KD1, KR0, KN3, KO6, KK3, KL3, KQ3, KO3, \ | ||
36 | KA4, KP2, KC6, KK6, KC0, KM3, KD0, KA1, KO0, KK0, KL0, KL6, KQ6 \ | ||
37 | ) { \ | ||
38 | { XXX, KB0, KC0, KD0, XXX, KF0, KG0, XXX, XXX, XXX, KK0, KL0, XXX, XXX, KO0, XXX, KQ0, KR0 }, \ | ||
39 | { KA1, KB1, XXX, KD1, KE1, KF1, KG1, KH1, KI1, KJ1, KK1, KL1, XXX, XXX, XXX, XXX, KQ1, XXX }, \ | ||
40 | { XXX, KB2, XXX, KD2, KE2, KF2, KG2, KH2, KI2, KJ2, KK2, KL2, XXX, KN2, XXX, KP2, KQ2, KR2 }, \ | ||
41 | { XXX, KB3, XXX, KD3, KE3, KF3, KG3, KH3, KI3, KJ3, KK3, KL3, KM3, KN3, KO3, XXX, KQ3, KR3 }, \ | ||
42 | { KA4, KB4, XXX, KD4, KE4, KF4, KG4, KH4, KI4, KJ4, KK4, KL4, XXX, XXX, KO4, XXX, KQ4, KR4 }, \ | ||
43 | { KA5, XXX, KC5, KD5, KE5, KF5, KG5, KH5, KI5, KJ5, KK5, KL5, XXX, XXX, KO5, XXX, KQ5, KR5 }, \ | ||
44 | { XXX, KB6, KC6, XXX, KE6, KF6, KG6, KH6, KI6, KJ6, KK6, KL6, XXX, XXX, KO6, XXX, KQ6, KR6 }, \ | ||
45 | { KA7, KB7, KC7, KD7, KE7, KF7, KG7, KH7, KI7, KJ7, XXX, XXX, XXX, XXX, KO7, XXX, KQ7, KR7 } \ | ||
46 | } | ||
47 | |||
48 | #define LAYOUT_fullsize_ansi( \ | ||
49 | KJ6, KI4, KH4, KH2, KH6, KA7, KE6, KD2, KD4, KB4, KB7, KB6, KB0, KC7, KC5, KA5, \ | ||
50 | KJ4, KJ7, KI7, KH7, KG7, KG4, KF4, KF7, KE7, KD7, KR7, KR4, KE4, KB2, KL4, KO4, KQ4, KK1, KL1, KQ1, KQ0, \ | ||
51 | KJ2, KJ5, KI5, KH5, KG5, KG2, KF2, KF5, KE5, KD5, KR5, KR2, KE2, KB3, KK4, KO7, KQ7, KK5, KL5, KQ5, KO5, \ | ||
52 | KI2, KJ3, KI3, KH3, KG3, KG6, KF6, KF3, KE3, KD3, KR3, KR6, KB1, KK2, KL2, KQ2, \ | ||
53 | KN2, KJ1, KI1, KH1, KG1, KG0, KF0, KF1, KE1, KD1, KR0, KN3, KO6, KK3, KL3, KQ3, KO3, \ | ||
54 | KA4, KP2, KC6, KK6, KC0, KM3, KD0, KA1, KO0, KK0, KL0, KL6, KQ6 \ | ||
55 | ) { \ | ||
56 | { XXX, KB0, KC0, KD0, XXX, KF0, KG0, XXX, XXX, XXX, KK0, KL0, XXX, XXX, KO0, XXX, KQ0, KR0 }, \ | ||
57 | { KA1, KB1, XXX, KD1, KE1, KF1, KG1, KH1, KI1, KJ1, KK1, KL1, XXX, XXX, XXX, XXX, KQ1, XXX }, \ | ||
58 | { XXX, KB2, XXX, KD2, KE2, KF2, KG2, KH2, KI2, KJ2, KK2, KL2, XXX, KN2, XXX, KP2, KQ2, KR2 }, \ | ||
59 | { XXX, KB3, XXX, KD3, KE3, KF3, KG3, KH3, KI3, KJ3, KK3, KL3, KM3, KN3, KO3, XXX, KQ3, KR3 }, \ | ||
60 | { KA4, KB4, XXX, KD4, KE4, KF4, KG4, KH4, KI4, KJ4, KK4, KL4, XXX, XXX, KO4, XXX, KQ4, KR4 }, \ | ||
61 | { KA5, XXX, KC5, KD5, KE5, KF5, KG5, KH5, KI5, KJ5, KK5, KL5, XXX, XXX, KO5, XXX, KQ5, KR5 }, \ | ||
62 | { XXX, KB6, KC6, XXX, KE6, KF6, KG6, KH6, XXX, KJ6, KK6, KL6, XXX, XXX, KO6, XXX, KQ6, KR6 }, \ | ||
63 | { KA7, KB7, KC7, KD7, KE7, KF7, KG7, KH7, KI7, KJ7, XXX, XXX, XXX, XXX, KO7, XXX, KQ7, KR7 } \ | ||
64 | } | ||