diff options
| author | Md. Mashur Shalehin Sakib <41992136+h0oni@users.noreply.github.com> | 2021-07-22 11:39:36 +0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-21 22:39:36 -0700 |
| commit | 5b8d2b5cde3c618c37a7bb09bf14cd50ec25459b (patch) | |
| tree | 883df8e0bdfade7ac8b8e99e5a6910e0646d3861 | |
| parent | b564ba13eef1564c871d062a6ce97c1ccdbbd825 (diff) | |
| download | qmk_firmware-5b8d2b5cde3c618c37a7bb09bf14cd50ec25459b.tar.gz qmk_firmware-5b8d2b5cde3c618c37a7bb09bf14cd50ec25459b.zip | |
[Keyboard] Add h0oni hotduck keyboard (#13609)
| -rw-r--r-- | keyboards/h0oni/hotduck/config.h | 74 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/hotduck.c | 18 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/hotduck.h | 37 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/info.json | 85 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/keymaps/default/keymap.c | 52 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/keymaps/via/keymap.c | 52 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/readme.md | 12 | ||||
| -rw-r--r-- | keyboards/h0oni/hotduck/rules.mk | 22 |
9 files changed, 354 insertions, 0 deletions
diff --git a/keyboards/h0oni/hotduck/config.h b/keyboards/h0oni/hotduck/config.h new file mode 100644 index 000000000..9865f5d30 --- /dev/null +++ b/keyboards/h0oni/hotduck/config.h | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | /* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.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 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x4D53 | ||
| 23 | #define PRODUCT_ID 0x6844 //hD | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER h0oni | ||
| 26 | #define PRODUCT hotDuck | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 7 | ||
| 30 | #define MATRIX_COLS 10 | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | #define MATRIX_ROW_PINS { B6, B2, B3, B1, F7, F6, F5 } | ||
| 43 | #define MATRIX_COL_PINS { B5, B4, E6, D7, C6, D4, D0, D1, D2, D3} | ||
| 44 | #define UNUSED_PINS | ||
| 45 | |||
| 46 | // #define LED_CAPS_LOCK_PIN B2 | ||
| 47 | // #define LED_PIN_ON_STATE 0 | ||
| 48 | |||
| 49 | // /* Backlight Setup */ | ||
| 50 | // #define BACKLIGHT_PIN B5 | ||
| 51 | // #define BACKLIGHT_LEVELS 6 | ||
| 52 | // //#define BACKLIGHT_BREATHING | ||
| 53 | |||
| 54 | /* COL2ROW or ROW2COL */ | ||
| 55 | #define DIODE_DIRECTION COL2ROW | ||
| 56 | |||
| 57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 58 | #define DEBOUNCE 5 | ||
| 59 | |||
| 60 | /* RGB Underglow | ||
| 61 | * F4 PIN for pre-soldered WS2812 LEDs | ||
| 62 | */ | ||
| 63 | #define RGB_DI_PIN F4 | ||
| 64 | #define RGBLIGHT_ANIMATIONS | ||
| 65 | #define RGBLED_NUM 20 | ||
| 66 | #define RGBLIGHT_HUE_STEP 10 | ||
| 67 | #define RGBLIGHT_SAT_STEP 15 | ||
| 68 | #define RGBLIGHT_VAL_STEP 15 | ||
| 69 | |||
| 70 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 71 | #define LOCKING_SUPPORT_ENABLE | ||
| 72 | /* Locking resynchronize hack */ | ||
| 73 | #define LOCKING_RESYNC_ENABLE | ||
| 74 | |||
diff --git a/keyboards/h0oni/hotduck/hotduck.c b/keyboards/h0oni/hotduck/hotduck.c new file mode 100644 index 000000000..a251fb898 --- /dev/null +++ b/keyboards/h0oni/hotduck/hotduck.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.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 | |||
| 17 | #include "hotduck.h" | ||
| 18 | |||
diff --git a/keyboards/h0oni/hotduck/hotduck.h b/keyboards/h0oni/hotduck/hotduck.h new file mode 100644 index 000000000..2cc36a0aa --- /dev/null +++ b/keyboards/h0oni/hotduck/hotduck.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.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 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT_all( \ | ||
| 22 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K19, K59, K58, K57, K69, K68, K67,\ | ||
| 23 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K29, K39, K49, K56, K55, K66, K65, K64,\ | ||
| 24 | K20, K21, K22, K23, K24, K25, K35, K26, K27, K28, K38, K54, K53,\ | ||
| 25 | K30, K31, K32, K33, K34, K44, K45, K46, K36, K37, K48, K52, K63,\ | ||
| 26 | K40, K41, K42, K43, K47, K50, K51, K60, K61, K62\ | ||
| 27 | ) { \ | ||
| 28 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09}, \ | ||
| 29 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \ | ||
| 30 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \ | ||
| 31 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39 }, \ | ||
| 32 | { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49 }, \ | ||
| 33 | { K50, K51, K52, K53, K54, K55, K56, K57, K58, K59 }, \ | ||
| 34 | { K60, K61, K62, K63, K64, K65, K66, K67, K68, K69 } \ | ||
| 35 | } | ||
| 36 | |||
| 37 | |||
diff --git a/keyboards/h0oni/hotduck/info.json b/keyboards/h0oni/hotduck/info.json new file mode 100644 index 000000000..e25703da2 --- /dev/null +++ b/keyboards/h0oni/hotduck/info.json | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "hotDuck", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "h0oni", | ||
| 5 | "width": 10, | ||
| 6 | "height": 7, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [{"label":"Esc", "x":0, "y":0}, | ||
| 10 | {"label":"!", "x":1, "y":0}, | ||
| 11 | {"label":"@", "x":2, "y":0}, | ||
| 12 | {"label":"#", "x":3, "y":0}, | ||
| 13 | {"label":"$", "x":4, "y":0}, | ||
| 14 | {"label":"%", "x":5, "y":0}, | ||
| 15 | {"label":"^", "x":6, "y":0}, | ||
| 16 | {"label":"&", "x":7, "y":0}, | ||
| 17 | {"label":"*", "x":8, "y":0}, | ||
| 18 | {"label":"(", "x":9, "y":0}, | ||
| 19 | {"label":")", "x":10, "y":0}, | ||
| 20 | {"label":"_", "x":11, "y":0}, | ||
| 21 | {"label":"+", "x":12, "y":0}, | ||
| 22 | {"label":"Bksp", "x":13, "y":0}, | ||
| 23 | {"label":"Menu", "x":15.25, "y":0}, | ||
| 24 | {"label":"Home", "x":16.25, "y":0}, | ||
| 25 | {"label":"PgUp", "x":17.25, "y":0}, | ||
| 26 | |||
| 27 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | ||
| 28 | {"label":"Q", "x":1.5, "y":1}, | ||
| 29 | {"label":"W", "x":2.5, "y":1}, | ||
| 30 | {"label":"E", "x":3.5, "y":1}, | ||
| 31 | {"label":"R", "x":4.5, "y":1}, | ||
| 32 | {"label":"T", "x":5.5, "y":1}, | ||
| 33 | {"label":"Y", "x":6.5, "y":1}, | ||
| 34 | {"label":"U", "x":7.5, "y":1}, | ||
| 35 | {"label":"I", "x":8.5, "y":1}, | ||
| 36 | {"label":"O", "x":9.5, "y":1}, | ||
| 37 | {"label":"P", "x":10.5, "y":1}, | ||
| 38 | {"label":"{", "x":11.5, "y":1}, | ||
| 39 | {"label":"}", "x":12.5, "y":1}, | ||
| 40 | {"label":"|", "x":13.5, "y":1, "w":1.5}, | ||
| 41 | {"label":"Del", "x":15.25, "y":0}, | ||
| 42 | {"label":"End", "x":16.25, "y":0}, | ||
| 43 | {"label":"PgDn", "x":17.25, "y":0}, | ||
| 44 | |||
| 45 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | ||
| 46 | {"label":"A", "x":1.75, "y":2}, | ||
| 47 | {"label":"S", "x":2.75, "y":2}, | ||
| 48 | {"label":"D", "x":3.75, "y":2}, | ||
| 49 | {"label":"F", "x":4.75, "y":2}, | ||
| 50 | {"label":"G", "x":5.75, "y":2}, | ||
| 51 | {"label":"H", "x":6.75, "y":2}, | ||
| 52 | {"label":"J", "x":7.75, "y":2}, | ||
| 53 | {"label":"K", "x":8.75, "y":2}, | ||
| 54 | {"label":"L", "x":9.75, "y":2}, | ||
| 55 | {"label":":", "x":10.75, "y":2}, | ||
| 56 | {"label":"\"", "x":11.75, "y":2}, | ||
| 57 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | ||
| 58 | |||
| 59 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | ||
| 60 | {"label":"Z", "x":2.25, "y":3}, | ||
| 61 | {"label":"X", "x":3.25, "y":3}, | ||
| 62 | {"label":"C", "x":4.25, "y":3}, | ||
| 63 | {"label":"V", "x":5.25, "y":3}, | ||
| 64 | {"label":"B", "x":6.25, "y":3}, | ||
| 65 | {"label":"N", "x":7.25, "y":3}, | ||
| 66 | {"label":"M", "x":8.25, "y":3}, | ||
| 67 | {"label":"<", "x":9.25, "y":3}, | ||
| 68 | {"label":">", "x":10.25, "y":3}, | ||
| 69 | {"label":"?", "x":11.25, "y":3}, | ||
| 70 | {"label":"Shift", "x":12.25, "y":3}, | ||
| 71 | {"label":"\u2191", "x":16.25, "y":3}, | ||
| 72 | |||
| 73 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | ||
| 74 | {"label":"Alt", "x":1.25, "y":4, "w":1.25}, | ||
| 75 | {"label":"Win", "x":2.5, "y":4, "w":1.25}, | ||
| 76 | {"x":3.75, "y":4, "w":6.25}, | ||
| 77 | {"label":"Win", "x":10, "y":4, "w":1.25}, | ||
| 78 | {"label":"Alt", "x":11.25, "y":4, "w":1.25}, | ||
| 79 | {"label":"Ctrl", "x":12.5, "y":4, "w":1.25}, | ||
| 80 | {"label":"\u2190", "x":15.25, "y":4}, | ||
| 81 | {"label":"\u2193", "x":16.25, "y":4}, | ||
| 82 | {"label":"\u2192", "x":17.25, "y":4}] | ||
| 83 | } | ||
| 84 | } | ||
| 85 | } \ No newline at end of file | ||
diff --git a/keyboards/h0oni/hotduck/keymaps/default/keymap.c b/keyboards/h0oni/hotduck/keymaps/default/keymap.c new file mode 100644 index 000000000..e06bac51b --- /dev/null +++ b/keyboards/h0oni/hotduck/keymaps/default/keymap.c | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.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 | |||
| 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_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, MO(1), KC_HOME, KC_PGUP, | ||
| 23 | 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_SLSH, KC_DEL, KC_END, KC_PGDOWN, | ||
| 24 | 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, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_BSLS, KC_RSFT, KC_UP, | ||
| 26 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
| 27 | ), | ||
| 28 | |||
| 29 | [1] = LAYOUT_all( | ||
| 30 | KC_GRV, 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_TRNS, MO(1), TG(2), KC_TRNS, | ||
| 31 | KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC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44 | |||
| 45 | [3] = LAYOUT_all( | ||
| 46 | KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,MO(4), | ||
| 47 | KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, | ||
| 48 | 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, | ||
| 49 | 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, | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS | ||
| 51 | ), | ||
| 52 | }; | ||
diff --git a/keyboards/h0oni/hotduck/keymaps/via/keymap.c b/keyboards/h0oni/hotduck/keymaps/via/keymap.c new file mode 100644 index 000000000..e06bac51b --- /dev/null +++ b/keyboards/h0oni/hotduck/keymaps/via/keymap.c | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.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 | |||
| 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_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, MO(1), KC_HOME, KC_PGUP, | ||
| 23 | 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_SLSH, KC_DEL, KC_END, KC_PGDOWN, | ||
| 24 | 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, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_BSLS, KC_RSFT, KC_UP, | ||
| 26 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
| 27 | ), | ||
| 28 | |||
| 29 | [1] = LAYOUT_all( | ||
| 30 | KC_GRV, 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_TRNS, MO(1), TG(2), KC_TRNS, | ||
| 31 | KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_T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OUT_all( | ||
| 46 | KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,MO(4), | ||
| 47 | KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, | ||
| 48 | 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, | ||
| 49 | 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, | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS | ||
| 51 | ), | ||
| 52 | }; | ||
diff --git a/keyboards/h0oni/hotduck/keymaps/via/rules.mk b/keyboards/h0oni/hotduck/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/h0oni/hotduck/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/h0oni/hotduck/readme.md b/keyboards/h0oni/hotduck/readme.md new file mode 100644 index 000000000..e4c06c46d --- /dev/null +++ b/keyboards/h0oni/hotduck/readme.md | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # hotDuck TKL | ||
| 2 | |||
| 3 | Built-in WS2182 RGB LED for underglow lighting. | ||
| 4 | |||
| 5 | * Keyboard Maintainer: h0oni | ||
| 6 | * Hardware Supported: hotDuck_tkl | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make h0oni/hotduck:default | ||
| 11 | |||
| 12 | 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). \ No newline at end of file | ||
diff --git a/keyboards/h0oni/hotduck/rules.mk b/keyboards/h0oni/hotduck/rules.mk new file mode 100644 index 000000000..b1e541851 --- /dev/null +++ b/keyboards/h0oni/hotduck/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output \ No newline at end of file | ||
