diff options
Diffstat (limited to 'keyboards/db')
-rw-r--r-- | keyboards/db/db63/config.h | 39 | ||||
-rw-r--r-- | keyboards/db/db63/db63.c | 17 | ||||
-rw-r--r-- | keyboards/db/db63/db63.h | 49 | ||||
-rw-r--r-- | keyboards/db/db63/info.json | 16 | ||||
-rw-r--r-- | keyboards/db/db63/keymaps/default/keymap.c | 60 | ||||
-rw-r--r-- | keyboards/db/db63/readme.md | 21 | ||||
-rw-r--r-- | keyboards/db/db63/rules.mk | 17 |
7 files changed, 219 insertions, 0 deletions
diff --git a/keyboards/db/db63/config.h b/keyboards/db/db63/config.h new file mode 100644 index 000000000..85625b720 --- /dev/null +++ b/keyboards/db/db63/config.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | Copyright 2020 Hung DO <[email protected]> | ||
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 | #define VENDOR_ID 0xFAAD | ||
21 | #define PRODUCT_ID 0x422D | ||
22 | #define DEVICE_VER 0x0200 | ||
23 | #define MANUFACTURER HNB | ||
24 | #define PRODUCT DB63v1 Hotswap | ||
25 | |||
26 | #define MATRIX_ROWS 6 | ||
27 | #define MATRIX_COLS 14 | ||
28 | |||
29 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5 } | ||
30 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2 } | ||
31 | #define UNUSED_PINS | ||
32 | |||
33 | #define DIODE_DIRECTION COL2ROW | ||
34 | |||
35 | #define RGBLED_NUM 18 | ||
36 | #define RGBLIGHT_ANIMATIONS | ||
37 | |||
38 | #define BACKLIGHT_PIN D4 | ||
39 | #define BACKLIGHT_LEVELS 3 | ||
diff --git a/keyboards/db/db63/db63.c b/keyboards/db/db63/db63.c new file mode 100644 index 000000000..62ebb2cc6 --- /dev/null +++ b/keyboards/db/db63/db63.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2019 MechMerlin | ||
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 "db63.h" | ||
diff --git a/keyboards/db/db63/db63.h b/keyboards/db/db63/db63.h new file mode 100644 index 000000000..d9a4d1e6d --- /dev/null +++ b/keyboards/db/db63/db63.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | Copyright 2020 Hung DO <[email protected]> | ||
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 "quantum.h" | ||
21 | #define _x_ KC_NO | ||
22 | |||
23 | /* This a shortcut to help you visually see your layout. | ||
24 | * | ||
25 | * The first section contains all of the arguments representing the physical | ||
26 | * layout of the board and position of the keys. | ||
27 | * | ||
28 | * The second converts the arguments into a two-dimensional array which | ||
29 | * represents the switch matrix. | ||
30 | * MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5 } | ||
31 | * MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2 } | ||
32 | * | ||
33 | */ | ||
34 | |||
35 | #define LAYOUT( \ | ||
36 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
37 | k10 , k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, \ | ||
38 | k20 , k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, \ | ||
39 | k30 , k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, \ | ||
40 | k40 , k41 , k42 , k43 , k44, k45, k46, k47 , k48 \ | ||
41 | ) { \ | ||
42 | { k00, _x_, _x_, _x_, _x_, _x_, _x_, _x_, _x_, _x_, _x_, _x_, _x_, _x_ }, \ | ||
43 | { _x_, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
44 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
45 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k46 }, \ | ||
46 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3c, k3a, k47, _x_ }, \ | ||
47 | { k40, k41, k42, k43, k45, _x_, _x_, k44, _x_, _x_, _x_, k3b, _x_, k48 } \ | ||
48 | } | ||
49 | |||
diff --git a/keyboards/db/db63/info.json b/keyboards/db/db63/info.json new file mode 100644 index 000000000..e588de487 --- /dev/null +++ b/keyboards/db/db63/info.json | |||
@@ -0,0 +1,16 @@ | |||
1 | { | ||
2 | "keyboard_name": "db63", | ||
3 | "url": "http://www.keyboard-layout-editor.com/#/gists/dadea703fc8bfc87dc7c480de9f3ef38", | ||
4 | "maintainer": "QMK Community", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [ | ||
8 | { "label": "~", "x": 0, "y": 0 }, { "label": "!", "x": 1, "y": 0 }, { "label": "@", "x": 2, "y": 0 }, { "label": "#", "x": 3, "y": 0 }, { "label": "$", "x": 4, "y": 0 }, { "label": "%", "x": 5, "y": 0 }, { "label": "^", "x": 6, "y": 0 }, { "label": "&", "x": 7, "y": 0 }, { "label": "*", "x": 8, "y": 0 }, { "label": "(", "x": 9, "y": 0 }, { "label": ")", "x": 10, "y": 0 }, { "label": "_", "x": 11, "y": 0 }, { "label": "+", "x": 12, "y": 0 }, { "label": "Backspace", "x": 13, "y": 0, "w": 2 }, | ||
9 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, { "label": "Q", "x": 1.5, "y": 1 }, { "label": "W", "x": 2.5, "y": 1 }, { "label": "E", "x": 3.5, "y": 1 }, { "label": "R", "x": 4.5, "y": 1 }, { "label": "T", "x": 5.5, "y": 1 }, { "label": "Y", "x": 6.5, "y": 1 }, { "label": "U", "x": 7.5, "y": 1 }, { "label": "I", "x": 8.5, "y": 1 }, { "label": "O", "x": 9.5, "y": 1 }, { "label": "P", "x": 10.5, "y": 1 }, { "label": "{", "x": 11.5, "y": 1 }, { "label": "}", "x": 12.5, "y": 1 }, { "label": "|", "x": 13.5, "y": 1, "w": 1.5 }, | ||
10 | { "label": "Fn3", "x": 0, "y": 2, "w": 1.75 }, { "label": "A", "x": 1.75, "y": 2 }, { "label": "S", "x": 2.75, "y": 2 }, { "label": "D", "x": 3.75, "y": 2 }, { "label": "F", "x": 4.75, "y": 2 }, { "label": "G", "x": 5.75, "y": 2 }, { "label": "H", "x": 6.75, "y": 2 }, { "label": "J", "x": 7.75, "y": 2 }, { "label": "K", "x": 8.75, "y": 2 }, { "label": "L", "x": 9.75, "y": 2 }, { "label": ":", "x": 10.75, "y": 2 }, { "label": "\"", "x": 11.75, "y": 2 }, { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
11 | { "label": "Shift", "x": 0, "y": 3, "w": 2.25 }, { "label": "Z", "x": 2.25, "y": 3 }, { "label": "X", "x": 3.25, "y": 3 }, { "label": "C", "x": 4.25, "y": 3 }, { "label": "V", "x": 5.25, "y": 3 }, { "label": "B", "x": 6.25, "y": 3 }, { "label": "N", "x": 7.25, "y": 3 }, { "label": "M", "x": 8.25, "y": 3 }, { "label": "<", "x": 9.25, "y": 3 }, { "label": ">", "x": 10.25, "y": 3 }, { "label": "Shift", "x": 11.25, "y": 3, "w": 1.75 }, { "label": "Up", "x": 13, "y": 3 }, { "label": "Fn2", "x": 14, "y": 3 }, | ||
12 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, { "label": "Alt", "x": 1.25, "y": 4, "w": 1.25 }, { "label": "Win", "x": 2.5, "y": 4, "w": 1.25 }, { "label": "Space", "x": 3.75, "y": 4, "w": 6.25 }, { "label": "?", "x": 10, "y": 4 }, { "label": "Fn1", "x": 11, "y": 4 }, { "label": "Left", "x": 12, "y": 4 }, { "label": "Down", "x": 13, "y": 4 }, { "label": "Right", "x": 14, "y": 4 } | ||
13 | ] | ||
14 | } | ||
15 | } | ||
16 | } | ||
diff --git a/keyboards/db/db63/keymaps/default/keymap.c b/keyboards/db/db63/keymaps/default/keymap.c new file mode 100644 index 000000000..800ff960b --- /dev/null +++ b/keyboards/db/db63/keymaps/default/keymap.c | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | Copyright 2020 Hung DO <[email protected]> | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT( | ||
22 | 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, | ||
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_BSLS, | ||
24 | MO(3), 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_RSFT, KC_UP, MO(2), | ||
26 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SLSH, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT( | ||
29 | 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, | ||
30 | 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, | ||
31 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, _______, | ||
32 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, XXXXXXX, | ||
33 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, _______, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
34 | ), | ||
35 | [2] = LAYOUT( | ||
36 | KC_GESC, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_TOG, RGB_VAD, RGB_VAI, KC_BSPC, | ||
37 | 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, | ||
38 | XXXXXXX, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, _______, | ||
39 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, MO(2), | ||
40 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, _______, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT | ||
41 | ), | ||
42 | [3] = LAYOUT( | ||
43 | _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, BL_BRTG, BL_TOGG, BL_DEC, BL_INC, _______, | ||
44 | 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, | ||
45 | MO(3), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, RESET, | ||
46 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, XXXXXXX, | ||
47 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, _______, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT | ||
48 | ), | ||
49 | }; | ||
50 | |||
51 | bool led_update_user(led_t led_state) { | ||
52 | if (led_state.caps_lock) { | ||
53 | rgblight_sethsv(HSV_CYAN); | ||
54 | writePinHigh(D1); | ||
55 | } else { | ||
56 | rgblight_sethsv(HSV_GREEN); | ||
57 | writePinLow(D1); | ||
58 | } | ||
59 | return false; | ||
60 | } | ||
diff --git a/keyboards/db/db63/readme.md b/keyboards/db/db63/readme.md new file mode 100644 index 000000000..e886bed0a --- /dev/null +++ b/keyboards/db/db63/readme.md | |||
@@ -0,0 +1,21 @@ | |||
1 | # DB63 | ||
2 | |||
3 | A 65% keyboard hotswap with RGB that runs ps2avrgb natively, with USB C, RGB underglow and backlight. | ||
4 | |||
5 | * Keyboard Maintainer: QMK Community | ||
6 | * Hardware Supported: DB63 (ATmega32A) | ||
7 | * [Keyboard layout](http://www.keyboard-layout-editor.com/#/gists/dadea703fc8bfc87dc7c480de9f3ef38) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make db/db63:default | ||
12 | |||
13 | Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid)) | ||
14 | |||
15 | make db/db63:default:flash | ||
16 | |||
17 | **Reset Key**: Hold down the key located at *K00*, commonly programmed as *Escape* while plugging in the keyboard. (*All backlight LEDs will flash which indicate the board is in bootloader mode.*) | ||
18 | |||
19 | **Tips**: Another trick to enable the board in reset mode is using BootMapper Client->Options->Set Bootloader. (*This is only available for the first time, before flashing QMK Firmware.*) | ||
20 | |||
21 | 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/db/db63/rules.mk b/keyboards/db/db63/rules.mk new file mode 100644 index 000000000..4dcdfe886 --- /dev/null +++ b/keyboards/db/db63/rules.mk | |||
@@ -0,0 +1,17 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32a | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = bootloadhid | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes | ||
12 | EXTRAKEY_ENABLE = yes | ||
13 | CONSOLE_ENABLE = no | ||
14 | COMMAND_ENABLE = yes | ||
15 | BACKLIGHT_ENABLE = yes | ||
16 | RGBLIGHT_ENABLE = yes | ||
17 | WS2812_DRIVER = i2c | ||