diff options
27 files changed, 461 insertions, 108 deletions
diff --git a/keyboards/westfoxtrot/cypher/cypher.c b/keyboards/westfoxtrot/cypher/cypher.c deleted file mode 100644 index d2407525e..000000000 --- a/keyboards/westfoxtrot/cypher/cypher.c +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 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 | |||
| 39 | void led_set_kb(uint8_t usb_led) { | ||
| 40 | if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { | ||
| 41 | writePinHigh(F4); | ||
| 42 | } else { | ||
| 43 | writePinLow(F4); | ||
| 44 | } | ||
| 45 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
| 46 | writePinHigh(F1); | ||
| 47 | } else { | ||
| 48 | writePinLow(F1); | ||
| 49 | } | ||
| 50 | if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { | ||
| 51 | writePinHigh(F5); | ||
| 52 | } else { | ||
| 53 | writePinLow(F5); | ||
| 54 | } | ||
| 55 | led_set_user(usb_led); | ||
| 56 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/config.h b/keyboards/westfoxtrot/cypher/rev1/config.h index 33bdaa204..33bdaa204 100644 --- a/keyboards/westfoxtrot/cypher/config.h +++ b/keyboards/westfoxtrot/cypher/rev1/config.h | |||
diff --git a/keyboards/westfoxtrot/cypher/info.json b/keyboards/westfoxtrot/cypher/rev1/info.json index ddf4e9d5a..ddf4e9d5a 100644 --- a/keyboards/westfoxtrot/cypher/info.json +++ b/keyboards/westfoxtrot/cypher/rev1/info.json | |||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default/keymap.c b/keyboards/westfoxtrot/cypher/rev1/keymaps/default/keymap.c index 1906f9396..54eae8e38 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/default/keymap.c +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/default/keymap.c | |||
| @@ -21,29 +21,17 @@ | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 22 | 22 | ||
| 23 | [_MA] = LAYOUT_ansi( /* Base */ | 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,\ | 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,\ | 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,\ | 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,\ | 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), | 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 | 29 | ||
| 30 | [_F1] = LAYOUT_ansi( /* Function Layer */ | 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, _______, _______, _______, _______, _______, _______,\ | 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,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______,\ | 32 | _______, BL_TOGG,BL_STEP,BL_ON,BL_OFF,BL_INC,BL_DEC,BL_BRTG,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, |
| 33 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______,\ | 33 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, |
| 34 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, _______,\ | 34 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, _______, |
| 35 | _______, _______,_______, _______, _______,_______,_______, _______,_______,_______, _______, _______, _______), | 35 | _______, _______,_______, _______, _______,_______,_______, _______,_______,_______, _______, _______, _______), |
| 36 | 36 | ||
| 37 | }; | 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/rev1/keymaps/default/readme.md index 05c370026..05c370026 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/default/readme.md +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/default/readme.md | |||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c b/keyboards/westfoxtrot/cypher/rev1/keymaps/default_iso/keymap.c index 2a08ae853..df93c5399 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/default-iso/keymap.c +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/default_iso/keymap.c | |||
| @@ -21,29 +21,17 @@ | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 22 | 22 | ||
| 23 | [_MA] = LAYOUT_iso( /* Base */ | 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,\ | 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,\ | 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,\ | 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,\ | 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), | 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 | 29 | ||
| 30 | [_F1] = LAYOUT_iso( /* Function Layer */ | 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, _______, _______, _______, _______, _______, _______,\ | 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,_______,_______,_______,_______, _______, _______, _______, _______, _______,\ | 32 | _______, BL_TOGG,BL_STEP,BL_ON,BL_OFF,BL_INC,BL_DEC,BL_BRTG,_______,_______,_______,_______, _______, _______, _______, _______, _______, |
| 33 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, _______, _______, _______, _______,\ | 33 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, _______, _______, _______, _______, |
| 34 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, _______,\ | 34 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, _______, |
| 35 | _______, _______,_______, _______, _______,_______,_______, _______,_______,_______, _______, _______, _______), | 35 | _______, _______,_______, _______, _______,_______,_______, _______,_______,_______, _______, _______, _______), |
| 36 | 36 | ||
| 37 | }; | 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/rev1/keymaps/default_iso/readme.md index 81a4a677f..81a4a677f 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/default-iso/readme.md +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/default_iso/readme.md | |||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/kwer/config.h b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/config.h index 947e340c3..947e340c3 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/kwer/config.h +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/config.h | |||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/kwer/keymap.c b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/keymap.c index 2d7bf2a5e..2d7bf2a5e 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/kwer/keymap.c +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/keymap.c | |||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/kwer/readme.md b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/readme.md index c1a132e71..c1a132e71 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/kwer/readme.md +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/readme.md | |||
diff --git a/keyboards/westfoxtrot/cypher/keymaps/kwer/rules.mk b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/rules.mk index df87c59a2..df87c59a2 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/kwer/rules.mk +++ b/keyboards/westfoxtrot/cypher/rev1/keymaps/kwer/rules.mk | |||
diff --git a/keyboards/westfoxtrot/cypher/readme.md b/keyboards/westfoxtrot/cypher/rev1/readme.md index 6db417fae..5e57fd8a4 100644 --- a/keyboards/westfoxtrot/cypher/readme.md +++ b/keyboards/westfoxtrot/cypher/rev1/readme.md | |||
| @@ -1,15 +1,13 @@ | |||
| 1 | # cypher | 1 | # cypher |
| 2 | 2 | ||
| 3 |  | ||
| 4 | |||
| 5 | PCB for the cypher keyboard | 3 | PCB for the cypher keyboard |
| 6 | 4 | ||
| 7 | Keyboard Maintainer: [westfoxtrot](https://github.com/westfoxtrot) | 5 | * Keyboard Maintainer: [westfoxtrot](https://github.com/westfoxtrot) |
| 8 | Hardware Supported: Cypher PCB | 6 | * Hardware Supported: Cypher PCB revisions 1-4 (Rev # is printed on PCB) |
| 9 | Hardware Availability: with group buy + Files released here (https://github.com/westfoxtrot/Cypher_PCB) | 7 | * Hardware Availability: with group buy + [Files released here](https://github.com/westfoxtrot/Cypher_PCB) |
| 10 | 8 | ||
| 11 | Make example for this keyboard (after setting up your build environment): | 9 | Make example for this keyboard (after setting up your build environment): |
| 12 | 10 | ||
| 13 | make westfoxtrot/cypher:default | 11 | make westfoxtrot/cypher/rev1:default |
| 14 | 12 | ||
| 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). | 13 | 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/keymaps/default-iso/config.h b/keyboards/westfoxtrot/cypher/rev1/rev1.c index 41d70907e..78b4b6b46 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/default-iso/config.h +++ b/keyboards/westfoxtrot/cypher/rev1/rev1.c | |||
| @@ -13,7 +13,19 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "rev1.h" | ||
| 16 | 17 | ||
| 17 | #pragma once | 18 | bool led_update_kb(led_t led_state) { |
| 18 | 19 | bool res = led_update_user(led_state); | |
| 19 | // place overrides here | 20 | if(res) { |
| 21 | // writePin sets the pin high for 1 and low for 0. | ||
| 22 | // In this example the pins are inverted, setting | ||
| 23 | // it low/0 turns it on, and high/1 turns the LED off. | ||
| 24 | // This behavior depends on whether the LED is between the pin | ||
| 25 | // and VCC or the pin and GND. | ||
| 26 | writePin(F4, led_state.num_lock); | ||
| 27 | writePin(F1, led_state.caps_lock); | ||
| 28 | writePin(F5, led_state.scroll_lock); | ||
| 29 | } | ||
| 30 | return res; | ||
| 31 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/cypher.h b/keyboards/westfoxtrot/cypher/rev1/rev1.h index fdff12e9b..fdff12e9b 100644 --- a/keyboards/westfoxtrot/cypher/cypher.h +++ b/keyboards/westfoxtrot/cypher/rev1/rev1.h | |||
diff --git a/keyboards/westfoxtrot/cypher/rules.mk b/keyboards/westfoxtrot/cypher/rev1/rules.mk index 4703282ff..4703282ff 100644 --- a/keyboards/westfoxtrot/cypher/rules.mk +++ b/keyboards/westfoxtrot/cypher/rev1/rules.mk | |||
diff --git a/keyboards/westfoxtrot/cypher/rev5/config.h b/keyboards/westfoxtrot/cypher/rev5/config.h new file mode 100644 index 000000000..111771ae8 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/config.h | |||
| @@ -0,0 +1,81 @@ | |||
| 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 0x0002 | ||
| 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, F1, F5, F6, F7, D1, F4, D4, C6, C7 } | ||
| 45 | #define MATRIX_COL_PINS { D6, D7, B4, B5, B6, B7, B3, B2, B1, F0 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | #define BACKLIGHT_BREATHING | ||
| 52 | #define BACKLIGHT_LEVELS 5 | ||
| 53 | |||
| 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 55 | #define DEBOUNCE 5 | ||
| 56 | |||
| 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 58 | #define LOCKING_SUPPORT_ENABLE | ||
| 59 | /* Locking resynchronize hack */ | ||
| 60 | #define LOCKING_RESYNC_ENABLE | ||
| 61 | |||
| 62 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 63 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 64 | */ | ||
| 65 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | #define BACKLIGHT_PIN D0 | ||
| 71 | |||
| 72 | #define RGB_DI_PIN E6 | ||
| 73 | #ifdef RGB_DI_PIN | ||
| 74 | #define RGBLED_NUM 10 | ||
| 75 | #define RGBLIGHT_HUE_STEP 12 | ||
| 76 | #define RGBLIGHT_SAT_STEP 25 | ||
| 77 | #define RGBLIGHT_VAL_STEP 12 | ||
| 78 | #define RGBLIGHT_LIMIT_VAL 255 | ||
| 79 | #define RGBLIGHT_SLEEP | ||
| 80 | #define RGBLIGHT_ANIMATIONS | ||
| 81 | #endif | ||
diff --git a/keyboards/westfoxtrot/cypher/rev5/info.json b/keyboards/westfoxtrot/cypher/rev5/info.json new file mode 100644 index 000000000..50f51651c --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/info.json | |||
| @@ -0,0 +1,110 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Cypher", | ||
| 3 | "width": 19.5, | ||
| 4 | "height": 5, | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_all": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"~","x":0,"y":0}, | ||
| 9 | {"label":"!","x":1,"y":0}, | ||
| 10 | {"label":"@","x":2,"y":0}, | ||
| 11 | {"label":"#","x":3,"y":0}, | ||
| 12 | {"label":"$","x":4,"y":0}, | ||
| 13 | {"label":"%","x":5,"y":0}, | ||
| 14 | {"label":"^","x":6,"y":0}, | ||
| 15 | {"label":"&","x":7,"y":0}, | ||
| 16 | {"label":"*","x":8,"y":0}, | ||
| 17 | {"label":"(","x":9,"y":0}, | ||
| 18 | {"label":")","x":10,"y":0}, | ||
| 19 | {"label":"_","x":11,"y":0}, | ||
| 20 | {"label":"+","x":12,"y":0}, | ||
| 21 | {"label":"Backspace","x":13,"y":0}, | ||
| 22 | {"label":"~","x":14,"y":0}, | ||
| 23 | |||
| 24 | {"label":"Num Lock","x":15.5,"y":0}, | ||
| 25 | {"label":"/","x":16.5,"y":0}, | ||
| 26 | {"label":"*","x":17.5,"y":0}, | ||
| 27 | {"label":"-","x":18.5,"y":0}, | ||
| 28 | |||
| 29 | {"label":"Tab","x":0,"y":1,"w":1.5}, | ||
| 30 | {"label":"Q","x":1.5,"y":1}, | ||
| 31 | {"label":"W","x":2.5,"y":1}, | ||
| 32 | {"label":"E","x":3.5,"y":1}, | ||
| 33 | {"label":"R","x":4.5,"y":1}, | ||
| 34 | {"label":"T","x":5.5,"y":1}, | ||
| 35 | {"label":"Y","x":6.5,"y":1}, | ||
| 36 | {"label":"U","x":7.5,"y":1}, | ||
| 37 | {"label":"I","x":8.5,"y":1}, | ||
| 38 | {"label":"O","x":9.5,"y":1}, | ||
| 39 | {"label":"P","x":10.5,"y":1}, | ||
| 40 | {"label":"{","x":11.5,"y":1}, | ||
| 41 | {"label":"}","x":12.5,"y":1}, | ||
| 42 | {"label":"|","x":13.5,"y":1,"w":1.5}, | ||
| 43 | |||
| 44 | {"label":"7","x":15.5,"y":1}, | ||
| 45 | {"label":"8","x":16.5,"y":1}, | ||
| 46 | {"label":"9","x":17.5,"y":1}, | ||
| 47 | {"label":"+","x":18.5,"y":1}, | ||
| 48 | |||
| 49 | {"label":"Caps Lock","x":0,"y":2,"w":1.75}, | ||
| 50 | {"label":"A","x":1.75,"y":2}, | ||
| 51 | {"label":"S","x":2.75,"y":2}, | ||
| 52 | {"label":"D","x":3.75,"y":2}, | ||
| 53 | {"label":"F","x":4.75,"y":2}, | ||
| 54 | {"label":"G","x":5.75,"y":2}, | ||
| 55 | {"label":"H","x":6.75,"y":2}, | ||
| 56 | {"label":"J","x":7.75,"y":2}, | ||
| 57 | {"label":"K","x":8.75,"y":2}, | ||
| 58 | {"label":"L","x":9.75,"y":2}, | ||
| 59 | {"label":":","x":10.75,"y":2}, | ||
| 60 | {"label":"\"","x":11.75,"y":2}, | ||
| 61 | {"label":"NUHS","x":12.75,"y":2}, | ||
| 62 | {"label":"Enter","x":13.75,"y":2,"w":1.25}, | ||
| 63 | |||
| 64 | {"label":"4","x":15.5,"y":2}, | ||
| 65 | {"label":"5","x":16.5,"y":2}, | ||
| 66 | {"label":"6","x":17.5,"y":2}, | ||
| 67 | {"label":"=","x":18.5,"y":2}, | ||
| 68 | |||
| 69 | {"label":"Shift","x":0,"y":3,"w":1.25}, | ||
| 70 | {"label":"Shift","x":1.25,"y":3}, | ||
| 71 | {"label":"Z","x":2.25,"y":3}, | ||
| 72 | {"label":"X","x":3.25,"y":3}, | ||
| 73 | {"label":"C","x":4.25,"y":3}, | ||
| 74 | {"label":"V","x":5.25,"y":3}, | ||
| 75 | {"label":"B","x":6.25,"y":3}, | ||
| 76 | {"label":"N","x":7.25,"y":3}, | ||
| 77 | {"label":"M","x":8.25,"y":3}, | ||
| 78 | {"label":"<","x":9.25,"y":3}, | ||
| 79 | {"label":">","x":10.25,"y":3}, | ||
| 80 | {"label":"?","x":11.25,"y":3}, | ||
| 81 | {"label":"Shift","x":12.25,"y":3,"w":1.75}, | ||
| 82 | |||
| 83 | {"label":"Up","x":14.25,"y":3.25}, | ||
| 84 | |||
| 85 | {"label":"1","x":15.5,"y":3}, | ||
| 86 | {"label":"2","x":16.5,"y":3}, | ||
| 87 | {"label":"3","x":17.5,"y":3}, | ||
| 88 | {"label":"Enter","x":18.5,"y":3}, | ||
| 89 | |||
| 90 | {"label":"Ctrl","x":0,"y":4,"w":1.25}, | ||
| 91 | {"label":"Win","x":1.25,"y":4}, | ||
| 92 | {"label":"Alt","x":2.25,"y":4,"w":1.25}, | ||
| 93 | {"label":"Space","x":3.5,"y":4,"w":1.5}, | ||
| 94 | {"label":"Space","x":5,"y":4,"w":3}, | ||
| 95 | {"label":"Space","x":8,"y":4,"w":1.5}, | ||
| 96 | {"label":"Alt","x":9.5,"y":4,"w":1.25}, | ||
| 97 | {"label":"Win","x":10.75,"y":4}, | ||
| 98 | {"label":"Ctrl","x":11.75,"y":4,"w":1.25}, | ||
| 99 | |||
| 100 | {"label":"Left","x":13.25,"y":4.25}, | ||
| 101 | {"label":"Down","x":14.25,"y":4.25}, | ||
| 102 | {"label":"Right","x":15.25,"y":4.25}, | ||
| 103 | |||
| 104 | {"label":"0","x":16.5,"y":4}, | ||
| 105 | {"label":".","x":17.5,"y":4}, | ||
| 106 | {"label":"Backspace","x":18.5,"y":4} | ||
| 107 | ] | ||
| 108 | } | ||
| 109 | } | ||
| 110 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/rev5/keymaps/default/keymap.c b/keyboards/westfoxtrot/cypher/rev5/keymaps/default/keymap.c new file mode 100644 index 000000000..f9d6bc8e5 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/keymaps/default/keymap.c | |||
| @@ -0,0 +1,37 @@ | |||
| 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_all( /* Base */ | ||
| 24 | KC_ESC, 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_NO, 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_NO, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PEQL, | ||
| 27 | KC_LSFT,KC_NO ,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_LCTL, KC_LGUI,KC_LALT, KC_SPC,KC_SPC,KC_SPC, KC_RALT,KC_RALT,MO(_F1), KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_BSPC), | ||
| 29 | |||
| 30 | [_F1] = LAYOUT_all( /* 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, KC_DEL , _______, _______, _______, _______, _______, | ||
| 32 | _______, BL_TOGG,BL_STEP,BL_ON,BL_OFF,BL_INC,BL_DEC,BL_BRTG,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______, _______, _______, _______, _______, _______, | ||
| 34 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, _______, _______, _______, | ||
| 35 | _______, _______,_______, _______,_______,_______, _______,_______,_______, _______,_______,_______, _______, _______, _______), | ||
| 36 | |||
| 37 | }; | ||
diff --git a/keyboards/westfoxtrot/cypher/rev5/keymaps/default/readme.md b/keyboards/westfoxtrot/cypher/rev5/keymaps/default/readme.md new file mode 100644 index 000000000..05c370026 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for cypher \ No newline at end of file | |||
diff --git a/keyboards/westfoxtrot/cypher/rev5/keymaps/default_iso/keymap.c b/keyboards/westfoxtrot/cypher/rev5/keymaps/default_iso/keymap.c new file mode 100644 index 000000000..e3bda0c00 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/keymaps/default_iso/keymap.c | |||
| @@ -0,0 +1,37 @@ | |||
| 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_all( /* 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_NO, 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_NO,KC_SPC,KC_NO, KC_RALT,KC_RGUI,MO(_F1), KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_BSPC), | ||
| 29 | |||
| 30 | [_F1] = LAYOUT_all( /* 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 | }; | ||
diff --git a/keyboards/westfoxtrot/cypher/rev5/keymaps/default_iso/readme.md b/keyboards/westfoxtrot/cypher/rev5/keymaps/default_iso/readme.md new file mode 100644 index 000000000..81a4a677f --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/keymaps/default_iso/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default iso keymap for cypher | |||
diff --git a/keyboards/westfoxtrot/cypher/rev5/keymaps/max/keymap.c b/keyboards/westfoxtrot/cypher/rev5/keymaps/max/keymap.c new file mode 100644 index 000000000..e23b83e14 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/keymaps/max/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_all( /* Base */ | ||
| 24 | KC_ESC, 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_GRV, 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_BSPC, KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 26 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,KC_NO, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PEQL, | ||
| 27 | KC_LSFT,KC_BSLS,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_CAPS, KC_LGUI,KC_LALT, KC_NO,KC_SPC,KC_NO, KC_RALT,KC_RALT,MO(_F1), KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_BSPC), | ||
| 29 | |||
| 30 | [_F1] = LAYOUT_all( /* 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/rev5/keymaps/max/readme.md b/keyboards/westfoxtrot/cypher/rev5/keymaps/max/readme.md new file mode 100644 index 000000000..05c370026 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/keymaps/max/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for cypher \ No newline at end of file | |||
diff --git a/keyboards/westfoxtrot/cypher/rev5/readme.md b/keyboards/westfoxtrot/cypher/rev5/readme.md new file mode 100644 index 000000000..d7b78d594 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # cypher | ||
| 2 | |||
| 3 | PCB for the cypher keyboard | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [westfoxtrot](https://github.com/westfoxtrot) | ||
| 6 | * Hardware Supported: Cypher PCB revisions 5 (Rev # is printed on PCB) | ||
| 7 | * Hardware Availability: with group buy + [Files released here](https://github.com/westfoxtrot/Cypher_PCB) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make westfoxtrot/cypher/rev5:default | ||
| 12 | |||
| 13 | 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/keymaps/default/config.h b/keyboards/westfoxtrot/cypher/rev5/rev5.c index 41d70907e..b75fd650e 100644 --- a/keyboards/westfoxtrot/cypher/keymaps/default/config.h +++ b/keyboards/westfoxtrot/cypher/rev5/rev5.c | |||
| @@ -13,7 +13,19 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "rev5.h" | ||
| 16 | 17 | ||
| 17 | #pragma once | 18 | bool led_update_kb(led_t led_state) { |
| 18 | 19 | bool res = led_update_user(led_state); | |
| 19 | // place overrides here | 20 | if(res) { |
| 21 | // writePin sets the pin high for 1 and low for 0. | ||
| 22 | // In this example the pins are inverted, setting | ||
| 23 | // it low/0 turns it on, and high/1 turns the LED off. | ||
| 24 | // This behavior depends on whether the LED is between the pin | ||
| 25 | // and VCC or the pin and GND. | ||
| 26 | writePin(D3, led_state.num_lock); | ||
| 27 | writePin(D5, led_state.caps_lock); | ||
| 28 | writePin(D2, led_state.scroll_lock); | ||
| 29 | } | ||
| 30 | return res; | ||
| 31 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/rev5/rev5.h b/keyboards/westfoxtrot/cypher/rev5/rev5.h new file mode 100644 index 000000000..d005ebc97 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/rev5.h | |||
| @@ -0,0 +1,48 @@ | |||
| 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_all( \ | ||
| 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, K72, K73, K75, K76, K77, K78, \ | ||
| 34 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K80, K81, K82, K83, K85, K86, K87, K88, \ | ||
| 35 | K40, K41, K42, K44, K46, K47, 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, K31, K32, K33, K34, K35, K36, K37, K38, K39 }, \ | ||
| 42 | { K40, K41, K42, ___, K44, ___, K46, K47, ___, K49 }, \ | ||
| 43 | { K50, K51, K52, K53, K54, K55, K56, K57, K58 }, \ | ||
| 44 | { K60, K61, K62, K63, ___, K65, K66, K67, K68 }, \ | ||
| 45 | { K70, K71, K72, K73, ___, K75, K76, K77, K78 }, \ | ||
| 46 | { K80, K81, K82, K83, ___, K85, K86, K87, K88 }, \ | ||
| 47 | { K90, K91, K92, K93, ___, K95, K96, K97, K98 } \ | ||
| 48 | } | ||
diff --git a/keyboards/westfoxtrot/cypher/rev5/rules.mk b/keyboards/westfoxtrot/cypher/rev5/rules.mk new file mode 100644 index 000000000..a41c12af5 --- /dev/null +++ b/keyboards/westfoxtrot/cypher/rev5/rules.mk | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default | ||
| 27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI support | ||
| 29 | UNICODE_ENABLE = no # Unicode | ||
| 30 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 31 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 32 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 33 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
