diff options
| author | mechlovin <57231893+mechlovin@users.noreply.github.com> | 2020-05-08 01:58:36 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 11:58:36 -0700 |
| commit | 58fd782ce05a5f13c05227c02f9b78f10cd4ecb5 (patch) | |
| tree | c4da0bdc79556a781471940b9dab1633cb6d3a06 /keyboards/mechlovin/hannah60rgb | |
| parent | 8e56d10e4e33c045c7835822b267919853fdb1e1 (diff) | |
| download | qmk_firmware-58fd782ce05a5f13c05227c02f9b78f10cd4ecb5.tar.gz qmk_firmware-58fd782ce05a5f13c05227c02f9b78f10cd4ecb5.zip | |
[Keyboard] Mechlovin hannah60rgb (#8951)
* add new keyboard hannah60rgb
* delete line
* Delete config.h
* Update hannah60rgb.c
* Update hannah60rgb.c
* update
* Update hannah60rgb.c
* update
Co-authored-by: vuhopkep <boy9x0@gmail.com>
Diffstat (limited to 'keyboards/mechlovin/hannah60rgb')
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/config.h | 58 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/hannah60rgb.c | 54 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/hannah60rgb.h | 63 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/info.json | 81 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/keymaps/default/keymap.c | 26 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/keymaps/via/keymap.c | 44 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/keymaps/via/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/mechlovin/hannah60rgb/rules.mk | 27 |
11 files changed, 371 insertions, 0 deletions
diff --git a/keyboards/mechlovin/hannah60rgb/config.h b/keyboards/mechlovin/hannah60rgb/config.h new file mode 100644 index 000000000..5ad16084f --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/config.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Mechlovin' | ||
| 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 0x4D4C // ML-Mechlovin | ||
| 24 | #define PRODUCT_ID 0x6001 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Team.Mechlovin | ||
| 27 | #define PRODUCT Hannah60 RGB | ||
| 28 | #define DESCRIPTION Team.Mechlovin Hannah60 RGB | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 5 | ||
| 32 | #define MATRIX_COLS 14 | ||
| 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 { A4, A5, A3, A2, A1 } | ||
| 45 | #define MATRIX_COL_PINS { B11, B10, B2, B1, B0, A7, A6, A0, C15, B4, B5, B3, C13, C14 } | ||
| 46 | |||
| 47 | #define DIODE_DIRECTION COL2ROW | ||
| 48 | |||
| 49 | #define RGB_DI_PIN A15 | ||
| 50 | #define DRIVER_LED_TOTAL 72 | ||
| 51 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | ||
| 52 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | ||
| 53 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 54 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
| 55 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | ||
| 56 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | ||
| 57 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | ||
| 58 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set \ No newline at end of file | ||
diff --git a/keyboards/mechlovin/hannah60rgb/hannah60rgb.c b/keyboards/mechlovin/hannah60rgb/hannah60rgb.c new file mode 100644 index 000000000..5acea8c66 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/hannah60rgb.c | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* Copyright 2020 Mechlovin' | ||
| 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 | #include "hannah60rgb.h" | ||
| 18 | |||
| 19 | void matrix_init_kb(void) { | ||
| 20 | // put your keyboard start-up code here | ||
| 21 | // runs once when the firmware starts up | ||
| 22 | matrix_init_user(); | ||
| 23 | led_init_ports(); | ||
| 24 | }; | ||
| 25 | |||
| 26 | #ifdef RGB_MATRIX_ENABLE | ||
| 27 | led_config_t g_led_config = { { | ||
| 28 | //Key Matrix to LED Index | ||
| 29 | {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, | ||
| 30 | {29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 15}, | ||
| 31 | {30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 16, 43}, | ||
| 32 | {59, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 44}, | ||
| 33 | {60, 61, 62, NO_LED, 63, NO_LED, 64, NO_LED, 67, NO_LED, 68, 69, 70, 71} | ||
| 34 | }, { | ||
| 35 | //LED Index to Physical Positon | ||
| 36 | { 0, 0}, { 16, 0}, { 32, 0 }, { 48, 0 }, { 64, 0}, { 80, 0}, { 96, 0}, { 112, 0}, { 128, 0}, { 144, 0}, { 160, 0}, { 176, 0}, {192, 0}, {208, 0}, {216, 0}, | ||
| 37 | {220, 0}, {211, 16}, {200,16 }, {176,16 }, {160,16}, {144,16}, {128,16}, { 112,16}, { 96,16}, { 80,16}, { 64,16}, { 48,16}, {32, 16}, {16, 16}, {0,16}, | ||
| 38 | { 0, 32}, { 16, 32}, { 32,32 }, { 48,32 }, { 64,32}, { 80,32}, { 96,32}, { 112,32}, { 128,32}, { 144,32}, { 160,32}, { 176,32}, {192, 32}, {208, 32}, {224,48}, | ||
| 39 | {208, 48}, {192, 48}, {160,48 }, {144,48 }, {128,48}, {112,48}, {96,48}, { 80,48}, { 64,48}, { 48,48}, { 32,48}, { 16,48}, {8, 48}, {0, 48}, {0,48}, | ||
| 40 | { 0, 64}, { 16, 64}, { 32,64 }, { 48,64 }, { 64,64}, { 80,64}, { 96,64}, { 112,64}, { 144,64}, { 160,64}, { 192,64}, { 224,64}, | ||
| 41 | }, { | ||
| 42 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
| 43 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
| 44 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
| 45 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
| 46 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
| 47 | } }; | ||
| 48 | |||
| 49 | void rgb_matrix_indicators_user(void) { | ||
| 50 | if (host_keyboard_led_state().caps_lock) { | ||
| 51 | rgb_matrix_set_color(30, 255, 255, 255); | ||
| 52 | } | ||
| 53 | } | ||
| 54 | #endif \ No newline at end of file | ||
diff --git a/keyboards/mechlovin/hannah60rgb/hannah60rgb.h b/keyboards/mechlovin/hannah60rgb/hannah60rgb.h new file mode 100644 index 000000000..8fd1c6797 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/hannah60rgb.h | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Mechlovin' | ||
| 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 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT_all( \ | ||
| 22 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D, \ | ||
| 23 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, \ | ||
| 24 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \ | ||
| 25 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \ | ||
| 26 | K40, K41, K42, K44, K46, K48, K4A, K4B, K4C, K4D \ | ||
| 27 | ) { \ | ||
| 28 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 29 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 30 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 31 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \ | ||
| 32 | { K40, K41, K42, KC_NO, K44, KC_NO, K46, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D }, \ | ||
| 33 | } | ||
| 34 | #define LAYOUT_60_ansi( \ | ||
| 35 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | ||
| 36 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, \ | ||
| 37 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \ | ||
| 38 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \ | ||
| 39 | K40, K41, K42, K46, K4A, K4B, K4C, K4D \ | ||
| 40 | ) { \ | ||
| 41 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 42 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, KC_NO }, \ | ||
| 43 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 44 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, KC_NO }, \ | ||
| 45 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D }, \ | ||
| 46 | } | ||
| 47 | #define LAYOUT_60_iso( \ | ||
| 48 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | ||
| 49 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \ | ||
| 50 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \ | ||
| 51 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \ | ||
| 52 | K40, K41, K42, K46, K4A, K4B, K4C, K4D \ | ||
| 53 | ) { \ | ||
| 54 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 55 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, KC_NO }, \ | ||
| 56 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 57 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, KC_NO }, \ | ||
| 58 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D }, \ | ||
| 59 | } | ||
| 60 | |||
| 61 | |||
| 62 | // generated by KBFirmware JSON to QMK Parser | ||
| 63 | // https://noroadsleft.github.io/kbf_qmk_converter/ | ||
diff --git a/keyboards/mechlovin/hannah60rgb/info.json b/keyboards/mechlovin/hannah60rgb/info.json new file mode 100644 index 000000000..97d7b8492 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/info.json | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "hannah60rgb", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "key_count": 66, | ||
| 10 | "layout": [ | ||
| 11 | {"label":"K00 (B0,B5)", "x":2.75, "y":0}, | ||
| 12 | {"label":"K01 (B0,B6)", "x":3.75, "y":0}, | ||
| 13 | {"label":"K02 (B0,B7)", "x":4.75, "y":0}, | ||
| 14 | {"label":"K03 (B0,C0)", "x":5.75, "y":0}, | ||
| 15 | {"label":"K04 (B0,C1)", "x":6.75, "y":0}, | ||
| 16 | {"label":"K05 (B0,C2)", "x":7.75, "y":0}, | ||
| 17 | {"label":"K06 (B0,C3)", "x":8.75, "y":0}, | ||
| 18 | {"label":"K07 (B0,C4)", "x":9.75, "y":0}, | ||
| 19 | {"label":"K08 (B0,C5)", "x":10.75, "y":0}, | ||
| 20 | {"label":"K09 (B0,C6)", "x":11.75, "y":0}, | ||
| 21 | {"label":"K0A (B0,C7)", "x":12.75, "y":0}, | ||
| 22 | {"label":"K0B (B0,D0)", "x":13.75, "y":0}, | ||
| 23 | {"label":"K0C (B0,D1)", "x":14.75, "y":0}, | ||
| 24 | {"label":"K0D (B0,F5)", "x":15.75, "y":0}, | ||
| 25 | {"label":"K1D (B1,F5)", "x":16.75, "y":0}, | ||
| 26 | {"label":"K10 (B1,B5)", "x":2.75, "y":1, "w":1.5}, | ||
| 27 | {"label":"K11 (B1,B6)", "x":4.25, "y":1}, | ||
| 28 | {"label":"K12 (B1,B7)", "x":5.25, "y":1}, | ||
| 29 | {"label":"K13 (B1,C0)", "x":6.25, "y":1}, | ||
| 30 | {"label":"K14 (B1,C1)", "x":7.25, "y":1}, | ||
| 31 | {"label":"K15 (B1,C2)", "x":8.25, "y":1}, | ||
| 32 | {"label":"K16 (B1,C3)", "x":9.25, "y":1}, | ||
| 33 | {"label":"K17 (B1,C4)", "x":10.25, "y":1}, | ||
| 34 | {"label":"K18 (B1,C5)", "x":11.25, "y":1}, | ||
| 35 | {"label":"K19 (B1,C6)", "x":12.25, "y":1}, | ||
| 36 | {"label":"K1A (B1,C7)", "x":13.25, "y":1}, | ||
| 37 | {"label":"K1B (B1,D0)", "x":14.25, "y":1}, | ||
| 38 | {"label":"K1C (B1,D1)", "x":15.25, "y":1}, | ||
| 39 | {"label":"K2C (B2,D1)", "x":16.25, "y":1, "w":1.5}, | ||
| 40 | {"label":"K20 (B2,B5)", "x":2.75, "y":2, "w":1.75}, | ||
| 41 | {"label":"K21 (B2,B6)", "x":4.5, "y":2}, | ||
| 42 | {"label":"K22 (B2,B7)", "x":5.5, "y":2}, | ||
| 43 | {"label":"K23 (B2,C0)", "x":6.5, "y":2}, | ||
| 44 | {"label":"K24 (B2,C1)", "x":7.5, "y":2}, | ||
| 45 | {"label":"K25 (B2,C2)", "x":8.5, "y":2}, | ||
| 46 | {"label":"K26 (B2,C3)", "x":9.5, "y":2}, | ||
| 47 | {"label":"K27 (B2,C4)", "x":10.5, "y":2}, | ||
| 48 | {"label":"K28 (B2,C5)", "x":11.5, "y":2}, | ||
| 49 | {"label":"K29 (B2,C6)", "x":12.5, "y":2}, | ||
| 50 | {"label":"K2A (B2,C7)", "x":13.5, "y":2}, | ||
| 51 | {"label":"K2B (B2,D0)", "x":14.5, "y":2}, | ||
| 52 | {"label":"K2D (B2,F5)", "x":15.5, "y":2, "w":2.25}, | ||
| 53 | {"label":"K30 (B3,B5)", "x":2.75, "y":3, "w":1.25}, | ||
| 54 | {"label":"K31 (B3,B6)", "x":4, "y":3}, | ||
| 55 | {"label":"K32 (B3,B7)", "x":5, "y":3}, | ||
| 56 | {"label":"K33 (B3,C0)", "x":6, "y":3}, | ||
| 57 | {"label":"K34 (B3,C1)", "x":7, "y":3}, | ||
| 58 | {"label":"K35 (B3,C2)", "x":8, "y":3}, | ||
| 59 | {"label":"K36 (B3,C3)", "x":9, "y":3}, | ||
| 60 | {"label":"K37 (B3,C4)", "x":10, "y":3}, | ||
| 61 | {"label":"K38 (B3,C5)", "x":11, "y":3}, | ||
| 62 | {"label":"K39 (B3,C6)", "x":12, "y":3}, | ||
| 63 | {"label":"K3A (B3,C7)", "x":13, "y":3}, | ||
| 64 | {"label":"K3B (B3,D0)", "x":14, "y":3}, | ||
| 65 | {"label":"K3C (B3,D1)", "x":15, "y":3, "w":1.75}, | ||
| 66 | {"label":"K3D (B3,F5)", "x":16.75, "y":3}, | ||
| 67 | {"label":"K40 (B4,B5)", "x":2.75, "y":4, "w":1.25}, | ||
| 68 | {"label":"K41 (B4,B6)", "x":4, "y":4, "w":1.25}, | ||
| 69 | {"label":"K42 (B4,B7)", "x":5.25, "y":4, "w":1.25}, | ||
| 70 | {"label":"K44 (B4,C1)", "x":6.5, "y":4, "w":2.75}, | ||
| 71 | {"label":"K46 (B4,C3)", "x":9.25, "y":4, "w":1.25}, | ||
| 72 | {"label":"K48 (B4,C5)", "x":10.5, "y":4, "w":2.25}, | ||
| 73 | {"label":"K4A (B4,C7)", "x":12.75, "y":4, "w":1.25}, | ||
| 74 | {"label":"K4B (B4,D0)", "x":14, "y":4, "w":1.25}, | ||
| 75 | {"label":"K4C (B4,D1)", "x":15.25, "y":4, "w":1.25}, | ||
| 76 | {"label":"K4D (B4,F5)", "x":16.5, "y":4, "w":1.25} | ||
| 77 | ] | ||
| 78 | } | ||
| 79 | } | ||
| 80 | ,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/" | ||
| 81 | } | ||
diff --git a/keyboards/mechlovin/hannah60rgb/keymaps/default/keymap.c b/keyboards/mechlovin/hannah60rgb/keymaps/default/keymap.c new file mode 100644 index 000000000..5edcdd099 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/keymaps/default/keymap.c | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* Copyright 2020 Mechlovin' | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_all( | ||
| 20 | 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_DEL, | ||
| 21 | 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, | ||
| 22 | 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, | ||
| 23 | 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_LSFT, MO(1), | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL ), | ||
| 25 | |||
| 26 | }; | ||
diff --git a/keyboards/mechlovin/hannah60rgb/keymaps/default/readme.md b/keyboards/mechlovin/hannah60rgb/keymaps/default/readme.md new file mode 100644 index 000000000..9a101f5ac --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for hannah60rgb | |||
diff --git a/keyboards/mechlovin/hannah60rgb/keymaps/via/keymap.c b/keyboards/mechlovin/hannah60rgb/keymaps/via/keymap.c new file mode 100644 index 000000000..0e22b84f0 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/keymaps/via/keymap.c | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2020 Mechlovin' | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_all( | ||
| 20 | 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_DEL, | ||
| 21 | 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, | ||
| 22 | LT(2,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, | ||
| 23 | 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_LSFT, MO(1), | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL ), | ||
| 25 | [1] = LAYOUT_all( | ||
| 26 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 27 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | ||
| 31 | [2] = LAYOUT_all( | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | ||
| 37 | [3] = LAYOUT_all( | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | ||
| 43 | |||
| 44 | }; | ||
diff --git a/keyboards/mechlovin/hannah60rgb/keymaps/via/readme.md b/keyboards/mechlovin/hannah60rgb/keymaps/via/readme.md new file mode 100644 index 000000000..794a57963 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/keymaps/via/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The VIA keymap for hannah60rgb | |||
diff --git a/keyboards/mechlovin/hannah60rgb/keymaps/via/rules.mk b/keyboards/mechlovin/hannah60rgb/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/mechlovin/hannah60rgb/readme.md b/keyboards/mechlovin/hannah60rgb/readme.md new file mode 100644 index 000000000..777be816a --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # hannah60rgb | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 60% PCB with per-key RGB, compatible with Poker and Unikorn cases. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Mechlovin'](https://github.com/mechlovin) | ||
| 8 | * Hardware Supported: hannah60rgb PCB, STM32F303 | ||
| 9 | |||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make mechlovin/hannah60rgb: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/mechlovin/hannah60rgb/rules.mk b/keyboards/mechlovin/hannah60rgb/rules.mk new file mode 100644 index 000000000..1a5441fc7 --- /dev/null +++ b/keyboards/mechlovin/hannah60rgb/rules.mk | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F303 | ||
| 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 = yes # Console for debug | ||
| 11 | COMMAND_ENABLE = yes # 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 = yes # USB Nkey Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | MIDI_ENABLE = no # MIDI support | ||
| 19 | UNICODE_ENABLE = no # Unicode | ||
| 20 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 21 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 22 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 23 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
| 24 | RGB_MATRIX_ENABLE = WS2812 | ||
| 25 | |||
| 26 | # generated by KBFirmware JSON to QMK Parser | ||
| 27 | # https://noroadsleft.github.io/kbf_qmk_converter/ | ||
