diff options
author | Max <17062872+westfoxtrot@users.noreply.github.com> | 2019-03-23 19:13:59 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-03-23 11:13:59 -0700 |
commit | 23086808a78c9234232e2ddbf0c977d1fb2cb6ae (patch) | |
tree | e38102ba301c975134a69f52f9ec9156fdda5040 | |
parent | 3529384c1202c6feca01039d5dcdb0491381ff4c (diff) | |
download | qmk_firmware-23086808a78c9234232e2ddbf0c977d1fb2cb6ae.tar.gz qmk_firmware-23086808a78c9234232e2ddbf0c977d1fb2cb6ae.zip |
[Keyboard] added cypher keyboard support (#5466)
* added the cypher qmk configuration
* Update keyboards/westfoxtrot/cypher/cypher.h
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/cypher.h
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/cypher.h
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/cypher.h
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/keymaps/default/keymap.c
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/keymaps/default/keymap.c
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/keymaps/default/keymap.c
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/info.json
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/info.json
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/readme.md
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* Update keyboards/westfoxtrot/cypher/readme.md
Co-Authored-By: westfoxtrot <17062872+westfoxtrot@users.noreply.github.com>
* made modifications as per requests
* removed endif from cypher.h
-rw-r--r-- | keyboards/westfoxtrot/cypher/config.h | 66 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/cypher.c | 54 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/cypher.h | 68 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/info.json | 14 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/keymaps/default-iso/config.h | 19 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c | 49 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/keymaps/default-iso/readme.md | 1 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/keymaps/default/config.h | 19 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/keymaps/default/keymap.c | 49 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/readme.md | 15 | ||||
-rw-r--r-- | keyboards/westfoxtrot/cypher/rules.mk | 81 |
12 files changed, 436 insertions, 0 deletions
diff --git a/keyboards/westfoxtrot/cypher/config.h b/keyboards/westfoxtrot/cypher/config.h new file mode 100644 index 000000000..48ff816f9 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/config.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | Copyright 2019 westfoxtrot | ||
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 0x21FF | ||
24 | #define PRODUCT_ID 0xAA97 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER westfoxtrot | ||
27 | #define PRODUCT cypher | ||
28 | #define DESCRIPTION Cypher | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 10 | ||
32 | #define MATRIX_COLS 10 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, F6, B6, B7, C6, C7 } | ||
45 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, D7, E6, F0 } | ||
46 | #define UNUSED_PINS | ||
47 | |||
48 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
49 | #define DIODE_DIRECTION COL2ROW | ||
50 | |||
51 | #define BACKLIGHT_PIN B5 | ||
52 | #define BACKLIGHT_BREATHING | ||
53 | #define BACKLIGHT_LEVELS 5 | ||
54 | |||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
56 | #define DEBOUNCING_DELAY 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 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
64 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
65 | */ | ||
66 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
diff --git a/keyboards/westfoxtrot/cypher/cypher.c b/keyboards/westfoxtrot/cypher/cypher.c new file mode 100644 index 000000000..e6cd84328 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/cypher.c | |||
@@ -0,0 +1,54 @@ | |||
1 | /* Copyright 2019 westfoxtrot | ||
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 "cypher.h" | ||
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | |||
22 | matrix_init_user(); | ||
23 | } | ||
24 | |||
25 | void matrix_scan_kb(void) { | ||
26 | // put your looping keyboard code here | ||
27 | // runs every cycle (a lot) | ||
28 | |||
29 | matrix_scan_user(); | ||
30 | } | ||
31 | |||
32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
33 | // put your per-action keyboard code here | ||
34 | // runs for every action, just before processing by the firmware | ||
35 | |||
36 | return process_record_user(keycode, record); | ||
37 | } | ||
38 | void led_set_user(uint8_t usb_led) { | ||
39 | if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { | ||
40 | writePinLow(F4); | ||
41 | } else { | ||
42 | writePinHigh(F4); | ||
43 | } | ||
44 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
45 | writePinLow(F1); | ||
46 | } else { | ||
47 | writePinHigh(F1); | ||
48 | } | ||
49 | if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { | ||
50 | writePinLow(F5); | ||
51 | } else { | ||
52 | writePinHigh(F5); | ||
53 | } | ||
54 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/cypher.h b/keyboards/westfoxtrot/cypher/cypher.h new file mode 100644 index 000000000..fdff12e9b --- /dev/null +++ b/keyboards/westfoxtrot/cypher/cypher.h | |||
@@ -0,0 +1,68 @@ | |||
1 | /* Copyright 2019 westfoxtrot | ||
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 ___ KC_NO | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | /* This a shortcut to help you visually see your layout. | ||
23 | * | ||
24 | * The first section contains all of the arguments representing the physical | ||
25 | * layout of the board and position of the keys. | ||
26 | * | ||
27 | * The second converts the arguments into a two-dimensional array which | ||
28 | * represents the switch matrix. | ||
29 | */ | ||
30 | #define LAYOUT_ansi( \ | ||
31 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, K51, K52, K53, K54, K55, K56, K57, K58,\ | ||
32 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K60, K61, K62, K63, K65, K66, K67, K68, \ | ||
33 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K70, K71, K73, K75, K76, K77, K78, \ | ||
34 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K80, K81, K82, K83, K85, K86, K87, K88, \ | ||
35 | K40, K41, K42, K46, K49, K90, K91, K92, K93, K95, K96, K97, K98 \ | ||
36 | ) \ | ||
37 | { \ | ||
38 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \ | ||
39 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \ | ||
40 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \ | ||
41 | { K30, ___, K32, K33, K34, K35, K36, K37, K38, K39 }, \ | ||
42 | { K40, K41, K42, ___, ___, ___, K46, ___, ___, K49 }, \ | ||
43 | { K50, K51, K52, K53, K54, K55, K56, K57, K58 }, \ | ||
44 | { K60, K61, K62, K63, ___, K65, K66, K67, K68 }, \ | ||
45 | { K70, K71, ___, K73, ___, K75, K76, K77, K78 }, \ | ||
46 | { K80, K81, K82, K83, ___, K85, K86, K87, K88 }, \ | ||
47 | { K90, K91, K92, K93, ___, K95, K96, K97, K98 } \ | ||
48 | } | ||
49 | |||
50 | #define LAYOUT_iso( \ | ||
51 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K50, K51, K52, K53, K54, K55, K56, K57, K58,\ | ||
52 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K60, K61, K62, K65, K66, K67, K68, \ | ||
53 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K70, K71, K72, K73, K75, K76, K77, K78, \ | ||
54 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K80, K81, K82, K83, K85, K86, K87, K88, \ | ||
55 | K40, K41, K42, K46, K49, K90, K91, K92, K93, K95, K96, K97, K98 \ | ||
56 | ) \ | ||
57 | { \ | ||
58 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \ | ||
59 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \ | ||
60 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \ | ||
61 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39 }, \ | ||
62 | { K40, K41, K42, ___, ___, ___, K46, ___, ___, K49 }, \ | ||
63 | { K50, K51, K52, K53, K54, K55, K56, K57, K58 }, \ | ||
64 | { K60, K61, K62, ___, ___, K65, K66, K67, K68 }, \ | ||
65 | { K70, K71, K72, K73, ___, K75, K76, K77, K78 }, \ | ||
66 | { K80, K81, K82, K83, ___, K85, K86, K87, K88 }, \ | ||
67 | { K90, K91, K92, K93, ___, K95, K96, K97, K98 } \ | ||
68 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/info.json b/keyboards/westfoxtrot/cypher/info.json new file mode 100644 index 000000000..3abf2b607 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/info.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "keyboard_name": "Cypher", | ||
3 | "width": 19.5, | ||
4 | "height": 5, | ||
5 | "layouts": { | ||
6 | "LAYOUT_ansi": { | ||
7 | "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0}, {"label":"~", "x":14, "y":0}, {"label":"Num Lock", "x":15.5, "y":0}, {"label":"/", "x":16.5, "y":0}, {"label":"*", "x":17.5, "y":0}, {"label":"-", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"=", "x":18.5, "y":2}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3}, {"label":"Up", "x":14.25, "y":3.25}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4}, {"label":"Alt", "x":2.25, "y":4, "w":1.25}, {"label":"Space", "x":3.5, "y":4, "w":6}, {"label":"Alt", "x":9.5, "y":4, "w":1.25}, {"label":"Win", "x":10.75, "y":4}, {"label":"Ctrl", "x":11.75, "y":4, "w":1.25}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}, {"label":"Backspace", "x":18.5, "y":4}, {"label":"Left", "x":13.25, "y":4.25}, {"label":"Down", "x":14.25, "y":4.25}, {"label":"Right", "x":15.25, "y":4.25}] | ||
8 | }, | ||
9 | |||
10 | "LAYOUT_iso": { | ||
11 | "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0}, {"label":"~", "x":14, "y":0}, {"label":"Num Lock", "x":15.5, "y":0}, {"label":"/", "x":16.5, "y":0}, {"label":"*", "x":17.5, "y":0}, {"label":"-", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"Enter", "x":13.75, "y":1, "w":1.25, "h":2}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"~", "x":12.75, "y":2}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"=", "x":18.5, "y":2}, {"label":"Shift", "x":0, "y":3, "w":1.25}, {"label":"|", "x":1.25, "y":3}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3}, {"label":"Up", "x":14.25, "y":3.25}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4}, {"label":"Alt", "x":2.25, "y":4, "w":1.25}, {"label":"Space", "x":3.5, "y":4, "w":6}, {"label":"Alt", "x":9.5, "y":4, "w":1.25}, {"label":"Win", "x":10.75, "y":4}, {"label":"Ctrl", "x":11.75, "y":4, "w":1.25}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}, {"label":"Backspace", "x":18.5, "y":4}, {"label":"Left", "x":13.25, "y":4.25}, {"label":"Down", "x":14.25, "y":4.25}, {"label":"Right", "x":15.25, "y":4.25}] | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default-iso/config.h b/keyboards/westfoxtrot/cypher/keymaps/default-iso/config.h new file mode 100644 index 000000000..41d70907e --- /dev/null +++ b/keyboards/westfoxtrot/cypher/keymaps/default-iso/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2019 westfoxtrot | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | // place overrides here | ||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c b/keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c new file mode 100644 index 000000000..2a08ae853 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* Copyright 2019 westfoxtrot | ||
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 | #define _MA 0 | ||
19 | #define _F1 1 | ||
20 | |||
21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
22 | |||
23 | [_MA] = LAYOUT_iso( /* Base */ | ||
24 | KC_GESC, 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_DEL, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,\ | ||
25 | 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_P7, KC_P8, KC_P9, KC_PPLS,\ | ||
26 | 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_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PEQL,\ | ||
27 | 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,\ | ||
28 | KC_LCTRL, KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI,MO(_F1), KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_BSPC), | ||
29 | |||
30 | [_F1] = LAYOUT_iso( /* Function Layer */ | ||
31 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______,\ | ||
32 | _______, BL_TOGG,BL_STEP,BL_ON,BL_OFF,BL_INC,BL_DEC,BL_BRTG,_______,_______,_______,_______, _______, _______, _______, _______, _______,\ | ||
33 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, _______, _______, _______, _______,\ | ||
34 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, _______,\ | ||
35 | _______, _______,_______, _______, _______,_______,_______, _______,_______,_______, _______, _______, _______), | ||
36 | |||
37 | }; | ||
38 | |||
39 | void matrix_init_user(void) { | ||
40 | //user initialization | ||
41 | } | ||
42 | |||
43 | void matrix_scan_user(void) { | ||
44 | //user matrix | ||
45 | } | ||
46 | |||
47 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
48 | return true; | ||
49 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default-iso/readme.md b/keyboards/westfoxtrot/cypher/keymaps/default-iso/readme.md new file mode 100644 index 000000000..81a4a677f --- /dev/null +++ b/keyboards/westfoxtrot/cypher/keymaps/default-iso/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default iso keymap for cypher | |||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default/config.h b/keyboards/westfoxtrot/cypher/keymaps/default/config.h new file mode 100644 index 000000000..41d70907e --- /dev/null +++ b/keyboards/westfoxtrot/cypher/keymaps/default/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2019 westfoxtrot | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | // place overrides here | ||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default/keymap.c b/keyboards/westfoxtrot/cypher/keymaps/default/keymap.c new file mode 100644 index 000000000..1906f9396 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/keymaps/default/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* Copyright 2019 westfoxtrot | ||
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 | #define _MA 0 | ||
19 | #define _F1 1 | ||
20 | |||
21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
22 | |||
23 | [_MA] = LAYOUT_ansi( /* Base */ | ||
24 | KC_GESC, 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_DEL, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,\ | ||
25 | 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_P7, KC_P8, KC_P9, KC_PPLS,\ | ||
26 | 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, KC_PEQL,\ | ||
27 | 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,\ | ||
28 | KC_LCTRL, KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI,MO(_F1), KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_BSPC), | ||
29 | |||
30 | [_F1] = LAYOUT_ansi( /* Function Layer */ | ||
31 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______,\ | ||
32 | _______, BL_TOGG,BL_STEP,BL_ON,BL_OFF,BL_INC,BL_DEC,BL_BRTG,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______,\ | ||
33 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______,\ | ||
34 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, _______,\ | ||
35 | _______, _______,_______, _______, _______,_______,_______, _______,_______,_______, _______, _______, _______), | ||
36 | |||
37 | }; | ||
38 | |||
39 | void matrix_init_user(void) { | ||
40 | //user initialization | ||
41 | } | ||
42 | |||
43 | void matrix_scan_user(void) { | ||
44 | //user matrix | ||
45 | } | ||
46 | |||
47 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
48 | return true; | ||
49 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default/readme.md b/keyboards/westfoxtrot/cypher/keymaps/default/readme.md new file mode 100644 index 000000000..05c370026 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for cypher \ No newline at end of file | |||
diff --git a/keyboards/westfoxtrot/cypher/readme.md b/keyboards/westfoxtrot/cypher/readme.md new file mode 100644 index 000000000..6db417fae --- /dev/null +++ b/keyboards/westfoxtrot/cypher/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # cypher | ||
2 | |||
3 |  | ||
4 | |||
5 | PCB for the cypher keyboard | ||
6 | |||
7 | Keyboard Maintainer: [westfoxtrot](https://github.com/westfoxtrot) | ||
8 | Hardware Supported: Cypher PCB | ||
9 | Hardware Availability: with group buy + Files released here (https://github.com/westfoxtrot/Cypher_PCB) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make westfoxtrot/cypher:default | ||
14 | |||
15 | 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/westfoxtrot/cypher/rules.mk b/keyboards/westfoxtrot/cypher/rules.mk new file mode 100644 index 000000000..ab03dc9f9 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rules.mk | |||
@@ -0,0 +1,81 @@ | |||
1 | # MCU name | ||
2 | #MCU = at90usb1286 | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | |||
19 | # | ||
20 | # LUFA specific | ||
21 | # | ||
22 | # Target architecture (see library "Board Types" documentation). | ||
23 | ARCH = AVR8 | ||
24 | |||
25 | # Input clock frequency. | ||
26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
32 | # source code. | ||
33 | # | ||
34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
36 | F_USB = $(F_CPU) | ||
37 | |||
38 | # Interrupt driven control endpoint task(+60) | ||
39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
40 | |||
41 | |||
42 | # Bootloader selection | ||
43 | # Teensy halfkay | ||
44 | # Pro Micro caterina | ||
45 | # Atmel DFU atmel-dfu | ||
46 | # LUFA DFU lufa-dfu | ||
47 | # QMK DFU qmk-dfu | ||
48 | # atmega32a bootloadHID | ||
49 | BOOTLOADER = atmel-dfu | ||
50 | |||
51 | |||
52 | # If you don't know the bootloader type, then you can specify the | ||
53 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
54 | # Teensy halfKay 512 | ||
55 | # Teensy++ halfKay 1024 | ||
56 | # Atmel DFU loader 4096 | ||
57 | # LUFA bootloader 4096 | ||
58 | # USBaspLoader 2048 | ||
59 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
60 | |||
61 | |||
62 | # Build Options | ||
63 | # change yes to no to disable | ||
64 | # | ||
65 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
66 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
67 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
68 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
69 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
70 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
71 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
72 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
73 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
74 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default | ||
75 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
76 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
77 | UNICODE_ENABLE = no # Unicode | ||
78 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
79 | AUDIO_ENABLE = no # Audio output on port C6 | ||
80 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
81 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||