diff options
| author | Joel Challis <git@zvecr.com> | 2020-12-05 21:48:02 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-05 21:48:02 +0000 |
| commit | 54b932e84404725d3ac77d36faa2001c0aa8267b (patch) | |
| tree | 0b5abd62cad05c36fc02a12fa2521ed8e6073eeb /keyboards | |
| parent | 9971caa6327274b230695afb4d76f83bf9b77f3a (diff) | |
| download | qmk_firmware-54b932e84404725d3ac77d36faa2001c0aa8267b.tar.gz qmk_firmware-54b932e84404725d3ac77d36faa2001c0aa8267b.zip | |
Initial Nightingale Studios Hailey support (#11116)
* Initial Nightingale Studios Hailey support
* Add info.json
* Fix bootmagic jump
* Add missing header
* Update default keymap
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/nightingale_studios/hailey/chconf.h | 19 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/config.h | 111 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/hailey.c | 17 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/hailey.h | 45 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/halconf.h | 26 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/info.json | 11 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/keymaps/default/config.h | 20 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/keymaps/default/keymap.c | 46 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/nightingale_studios/hailey/rules.mk | 20 |
10 files changed, 334 insertions, 0 deletions
diff --git a/keyboards/nightingale_studios/hailey/chconf.h b/keyboards/nightingale_studios/hailey/chconf.h new file mode 100644 index 000000000..6d2fa9734 --- /dev/null +++ b/keyboards/nightingale_studios/hailey/chconf.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 zvecr<git@zvecr.com> | ||
| 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 | #define CH_CFG_USE_TM FALSE | ||
| 19 | #include_next "chconf.h" \ No newline at end of file | ||
diff --git a/keyboards/nightingale_studios/hailey/config.h b/keyboards/nightingale_studios/hailey/config.h new file mode 100644 index 000000000..ad2b8aafc --- /dev/null +++ b/keyboards/nightingale_studios/hailey/config.h | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 zvecr<git@zvecr.com> | ||
| 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 0xFEED | ||
| 24 | #define PRODUCT_ID 0x4879 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Nightingale Studios | ||
| 27 | #define PRODUCT Hailey | ||
| 28 | |||
| 29 | /* key matrix size - encoder is not part of matrix but wired to 2 pins so bodge a fake row/col*/ | ||
| 30 | #define MATRIX_ROWS 7 | ||
| 31 | #define MATRIX_COLS 17 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { A8, B15, B14, B13, B12, B6, A14 } | ||
| 44 | #define MATRIX_COL_PINS { A4, A3, F1, F0, C15, C14, C13, B11, B10, B2, B1, B0, A7, A5, A6, B5, A15 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | #define ENCODERS_PAD_A { B4 } | ||
| 51 | #define ENCODERS_PAD_B { B3 } | ||
| 52 | |||
| 53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 54 | #define DEBOUNCE 5 | ||
| 55 | |||
| 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 57 | #define LOCKING_SUPPORT_ENABLE | ||
| 58 | /* Locking resynchronize hack */ | ||
| 59 | #define LOCKING_RESYNC_ENABLE | ||
| 60 | |||
| 61 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 62 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 63 | */ | ||
| 64 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 65 | |||
| 66 | /* | ||
| 67 | * Force NKRO | ||
| 68 | * | ||
| 69 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 70 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 71 | * makefile for this to work.) | ||
| 72 | * | ||
| 73 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 74 | * until the next keyboard reset. | ||
| 75 | * | ||
| 76 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 77 | * fully operational during normal computer usage. | ||
| 78 | * | ||
| 79 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 80 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 81 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 82 | * power-up. | ||
| 83 | * | ||
| 84 | */ | ||
| 85 | //#define FORCE_NKRO | ||
| 86 | |||
| 87 | /* | ||
| 88 | * Feature disable options | ||
| 89 | * These options are also useful to firmware size reduction. | ||
| 90 | */ | ||
| 91 | |||
| 92 | /* disable debug print */ | ||
| 93 | //#define NO_DEBUG | ||
| 94 | |||
| 95 | /* disable print */ | ||
| 96 | //#define NO_PRINT | ||
| 97 | |||
| 98 | /* disable action features */ | ||
| 99 | //#define NO_ACTION_LAYER | ||
| 100 | //#define NO_ACTION_TAPPING | ||
| 101 | //#define NO_ACTION_ONESHOT | ||
| 102 | |||
| 103 | /* disable these deprecated features by default */ | ||
| 104 | #define NO_ACTION_MACRO | ||
| 105 | #define NO_ACTION_FUNCTION | ||
| 106 | |||
| 107 | /* Bootmagic Lite key configuration */ | ||
| 108 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 109 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
| 110 | |||
| 111 | #define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE | ||
diff --git a/keyboards/nightingale_studios/hailey/hailey.c b/keyboards/nightingale_studios/hailey/hailey.c new file mode 100644 index 000000000..ec537397d --- /dev/null +++ b/keyboards/nightingale_studios/hailey/hailey.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 zvecr<git@zvecr.com> | ||
| 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 | #include "hailey.h" | ||
diff --git a/keyboards/nightingale_studios/hailey/hailey.h b/keyboards/nightingale_studios/hailey/hailey.h new file mode 100644 index 000000000..63fd0323c --- /dev/null +++ b/keyboards/nightingale_studios/hailey/hailey.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* Copyright 2020 zvecr<git@zvecr.com> | ||
| 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 | #include "quantum.h" | ||
| 19 | #define ____ KC_NO | ||
| 20 | |||
| 21 | /* This a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT_all( \ | ||
| 30 | K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, E001, \ | ||
| 31 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, \ | ||
| 32 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K215, \ | ||
| 33 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K315, \ | ||
| 34 | K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K414, \ | ||
| 35 | K500, K501, K503, K505, K509, K511, K512, K514, K515 \ | ||
| 36 | ) \ | ||
| 37 | { \ | ||
| 38 | { K000, ____, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, ____, ____}, \ | ||
| 39 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, ____}, \ | ||
| 40 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, ____, K215, ____}, \ | ||
| 41 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, ____, ____, K315, ____}, \ | ||
| 42 | { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, ____, K414, ____, ____}, \ | ||
| 43 | { K500, K501, K503, ____, ____, K505, ____, ____, ____, K509, ____, K511, K512, ____, K514, K515, ____}, \ | ||
| 44 | { ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, E001}, \ | ||
| 45 | } | ||
diff --git a/keyboards/nightingale_studios/hailey/halconf.h b/keyboards/nightingale_studios/hailey/halconf.h new file mode 100644 index 000000000..8e3818ea2 --- /dev/null +++ b/keyboards/nightingale_studios/hailey/halconf.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 zvecr<git@zvecr.com> | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #define HAL_USE_I2C FALSE | ||
| 20 | #define HAL_USE_PWM FALSE | ||
| 21 | #define HAL_USE_SPI FALSE | ||
| 22 | #define HAL_USE_GPT FALSE | ||
| 23 | #define HAL_USE_PWM FALSE | ||
| 24 | #define HAL_USE_DAC FALSE | ||
| 25 | |||
| 26 | #include_next "halconf.h" | ||
diff --git a/keyboards/nightingale_studios/hailey/info.json b/keyboards/nightingale_studios/hailey/info.json new file mode 100644 index 000000000..f770d91d2 --- /dev/null +++ b/keyboards/nightingale_studios/hailey/info.json | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Hailey", | ||
| 3 | "maintainer": "zvecr", | ||
| 4 | "width": 16.25, | ||
| 5 | "height": 6.5, | ||
| 6 | "layouts": { | ||
| 7 | "LAYOUT_all": { | ||
| 8 | "layout": [{"label":"0,0", "x":0, "y":0}, {"label":"0,2", "x":1.25, "y":0}, {"label":"0,3", "x":2.25, "y":0}, {"label":"0,4", "x":3.25, "y":0}, {"label":"0,5", "x":4.25, "y":0}, {"label":"0,6", "x":5.5, "y":0}, {"label":"0,7", "x":6.5, "y":0}, {"label":"0,8", "x":7.5, "y":0}, {"label":"0,9", "x":8.5, "y":0}, {"label":"0,10", "x":9.75, "y":0}, {"label":"0,11", "x":10.75, "y":0}, {"label":"0,12", "x":11.75, "y":0}, {"label":"0,13", "x":12.75, "y":0}, {"label":"0,14", "x":14, "y":0}, {"label":"6,16", "x":15.25, "y":0}, {"label":"1,0", "x":0, "y":1.25}, {"label":"1,1", "x":1, "y":1.25}, {"label":"1,2", "x":2, "y":1.25}, {"label":"1,3", "x":3, "y":1.25}, {"label":"1,4", "x":4, "y":1.25}, {"label":"1,5", "x":5, "y":1.25}, {"label":"1,6", "x":6, "y":1.25}, {"label":"1,7", "x":7, "y":1.25}, {"label":"1,8", "x":8, "y":1.25}, {"label":"1,9", "x":9, "y":1.25}, {"label":"1,10", "x":10, "y":1.25}, {"label":"1,11", "x":11, "y":1.25}, {"label":"1,12", "x":12, "y":1.25}, {"label":"1,13", "x":13, "y":1.25}, {"label":"1,14", "x":14, "y":1.25}, {"label":"1,15", "x":15.25, "y":1.25}, {"label":"2,0", "x":0, "y":2.25, "w":1.5}, {"label":"2,1", "x":1.5, "y":2.25}, {"label":"2,2", "x":2.5, "y":2.25}, {"label":"2,3", "x":3.5, "y":2.25}, {"label":"2,4", "x":4.5, "y":2.25}, {"label":"2,5", "x":5.5, "y":2.25}, {"label":"2,6", "x":6.5, "y":2.25}, {"label":"2,7", "x":7.5, "y":2.25}, {"label":"2,8", "x":8.5, "y":2.25}, {"label":"2,9", "x":9.5, "y":2.25}, {"label":"2,10", "x":10.5, "y":2.25}, {"label":"2,11", "x":11.5, "y":2.25}, {"label":"2,12", "x":12.5, "y":2.25}, {"label":"2,13", "x":13.5, "y":2.25, "w":1.5}, {"label":"2,15", "x":15.25, "y":2.25}, {"label":"3,0", "x":0, "y":3.25, "w":1.75}, {"label":"3,1", "x":1.75, "y":3.25}, {"label":"3,2", "x":2.75, "y":3.25}, {"label":"3,3", "x":3.75, "y":3.25}, {"label":"3,4", "x":4.75, "y":3.25}, {"label":"3,5", "x":5.75, "y":3.25}, {"label":"3,6", "x":6.75, "y":3.25}, {"label":"3,7", "x":7.75, "y":3.25}, {"label":"3,8", "x":8.75, "y":3.25}, {"label":"3,9", "x":9.75, "y":3.25}, {"label":"3,10", "x":10.75, "y":3.25}, {"label":"3,11", "x":11.75, "y":3.25}, {"label":"3,12", "x":12.75, "y":3.25, "w":2.25}, {"label":"3,15", "x":15.25, "y":3.25}, {"label":"4,0", "x":0, "y":4.25, "w":1.25}, {"label":"4,1", "x":1.25, "y":4.25}, {"label":"4,2", "x":2.25, "y":4.25}, {"label":"4,3", "x":3.25, "y":4.25}, {"label":"4,4", "x":4.25, "y":4.25}, {"label":"4,5", "x":5.25, "y":4.25}, {"label":"4,6", "x":6.25, "y":4.25}, {"label":"4,7", "x":7.25, "y":4.25}, {"label":"4,8", "x":8.25, "y":4.25}, {"label":"4,9", "x":9.25, "y":4.25}, {"label":"4,10", "x":10.25, "y":4.25}, {"label":"4,11", "x":11.25, "y":4.25}, {"label":"4,12", "x":12.25, "y":4.25, "w":1.75}, {"label":"4,14", "x":14.25, "y":4.5}, {"label":"5,0", "x":0, "y":5.25, "w":1.25}, {"label":"5,1", "x":1.25, "y":5.25, "w":1.25}, {"label":"5,2", "x":2.5, "y":5.25, "w":1.25}, {"label":"5,5", "x":3.75, "y":5.25, "w":6.25}, {"label":"5,9", "x":10, "y":5.25, "w":1.5}, {"label":"5,11", "x":11.5, "y":5.25, "w":1.5}, {"label":"5,12", "x":13.25, "y":5.5}, {"label":"5,14", "x":14.25, "y":5.5}, {"label":"5,15", "x":15.25, "y":5.5}] | ||
| 9 | } | ||
| 10 | } | ||
| 11 | } \ No newline at end of file | ||
diff --git a/keyboards/nightingale_studios/hailey/keymaps/default/config.h b/keyboards/nightingale_studios/hailey/keymaps/default/config.h new file mode 100644 index 000000000..cd88d1ab3 --- /dev/null +++ b/keyboards/nightingale_studios/hailey/keymaps/default/config.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 zvecr<git@zvecr.com> | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #define TAP_CODE_DELAY 10 | ||
| 20 | #define ENCODER_RESOLUTION 2 | ||
diff --git a/keyboards/nightingale_studios/hailey/keymaps/default/keymap.c b/keyboards/nightingale_studios/hailey/keymaps/default/keymap.c new file mode 100644 index 000000000..0b7e0903e --- /dev/null +++ b/keyboards/nightingale_studios/hailey/keymaps/default/keymap.c | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 zvecr<git@zvecr.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | |||
| 21 | [0] = LAYOUT_all( | ||
| 22 | 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_F13, KC_MPLY, | ||
| 23 | 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_BSLS, KC_BSLS, KC_PGUP, | ||
| 24 | 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_PGDN, | ||
| 25 | 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, MO(1), | ||
| 26 | 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, | ||
| 27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTRL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | |||
| 30 | [1] = LAYOUT_all( | ||
| 31 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 37 | ), | ||
| 38 | }; | ||
| 39 | |||
| 40 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 41 | if (clockwise) { | ||
| 42 | tap_code(KC_VOLU); | ||
| 43 | } else { | ||
| 44 | tap_code(KC_VOLD); | ||
| 45 | } | ||
| 46 | } | ||
diff --git a/keyboards/nightingale_studios/hailey/readme.md b/keyboards/nightingale_studios/hailey/readme.md new file mode 100644 index 000000000..9d953a576 --- /dev/null +++ b/keyboards/nightingale_studios/hailey/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Hailey | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 75% ARM STM32F072 keyboard, with EC11K rotary encoder. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [zvecr](https://github.com/zvecr) | ||
| 8 | * Hardware Supported: Hailey PCB | ||
| 9 | * Hardware Availability: Private Group-Buy | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make nightingale_studios/hailey:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make nightingale_studios/hailey:default:flash | ||
| 18 | |||
| 19 | 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/nightingale_studios/hailey/rules.mk b/keyboards/nightingale_studios/hailey/rules.mk new file mode 100644 index 000000000..5789036c7 --- /dev/null +++ b/keyboards/nightingale_studios/hailey/rules.mk | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F072 | ||
| 3 | |||
| 4 | # Build Options | ||
| 5 | # change yes to no to disable | ||
| 6 | # | ||
| 7 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 8 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 9 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 10 | CONSOLE_ENABLE = no # Console for debug | ||
| 11 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 12 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 13 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 14 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 15 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 19 | AUDIO_ENABLE = no # Audio output | ||
| 20 | ENCODER_ENABLE = yes | ||
