diff options
| author | skyloong <92424712+JZ-Skyloong@users.noreply.github.com> | 2023-07-10 10:41:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-09 20:41:22 -0600 |
| commit | 72cf966a88f8d2cfe7e6e2c3b455334fd9164bc5 (patch) | |
| tree | 9fcacfee9154e44396a910a0fec0d3f49af649f4 /keyboards/skyloong | |
| parent | ba263f9f6125c643077301021b5a754aae9c02af (diff) | |
[Keyboard] Add skyloong/Dt40 (#21237)
Co-authored-by: jack <0x6a73@protonmail.com>
Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/skyloong')
| -rw-r--r-- | keyboards/skyloong/dt40/config.h | 36 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/dt40.c | 24 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/halconf.h | 21 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/info.json | 165 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/keymaps/default/keymap.c | 30 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/keymaps/via/keymap.c | 59 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/mcuconf.h | 24 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/readme.md | 32 | ||||
| -rw-r--r-- | keyboards/skyloong/dt40/rules.mk | 1 |
10 files changed, 393 insertions, 0 deletions
diff --git a/keyboards/skyloong/dt40/config.h b/keyboards/skyloong/dt40/config.h new file mode 100644 index 0000000000..e67b7ae0a9 --- /dev/null +++ b/keyboards/skyloong/dt40/config.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2021 JZ-Skyloong (@JZ-Skyloong) | ||
| 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 RGB_MATRIX_LED_COUNT 44 //The number of LEDs connected | ||
| 19 | #define RGB_MATRIX_KEYPRESSES //Reacts to keypress | ||
| 20 | #define RGB_DISABLE_WHEN_USB_SUSPENDED //turn off effects when suspended | ||
| 21 | |||
| 22 | #define RGB_MATRIX_DEFAULT_VAL 150 //Sets the default mode, if none has been set | ||
| 23 | #define RGB_TRIGGER_ON_KEYDOWN //Triggers RGB keypress events on key down | ||
| 24 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS // enable framebuffer effects | ||
| 25 | #define RGB_MATRIX_TYPING_HEATMAP_DECREASE_DELAY_MS 1 | ||
| 26 | |||
| 27 | //Set WS2812 driver | ||
| 28 | #define WS2812_TRST_US 200 //The Trst period between frames | ||
| 29 | //set ' WS2812_DRIVER = pwm ' in rule.mk | ||
| 30 | #define WS2812_PWM_DRIVER PWMD3 | ||
| 31 | #define WS2812_PWM_CHANNEL 1 | ||
| 32 | #define WS2812_PWM_PAL_MODE 2 | ||
| 33 | #define WS2812_DMA_STREAM STM32_DMA1_STREAM3 | ||
| 34 | #define WS2812_DMA_CHANNEL 3 | ||
| 35 | |||
| 36 | |||
diff --git a/keyboards/skyloong/dt40/dt40.c b/keyboards/skyloong/dt40/dt40.c new file mode 100644 index 0000000000..359e425b8d --- /dev/null +++ b/keyboards/skyloong/dt40/dt40.c | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2021 JZ-Skyloong (@JZ-Skyloong) | ||
| 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 | |||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | void board_init(void) { | ||
| 22 | AFIO->MAPR |= AFIO_MAPR_USART1_REMAP | AFIO_MAPR_TIM3_REMAP_PARTIALREMAP; | ||
| 23 | |||
| 24 | } | ||
diff --git a/keyboards/skyloong/dt40/halconf.h b/keyboards/skyloong/dt40/halconf.h new file mode 100644 index 0000000000..f9301ae83b --- /dev/null +++ b/keyboards/skyloong/dt40/halconf.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* Copyright 2021 JZ-Skyloong (@JZ-Skyloong) | ||
| 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 HAL_USE_PWM TRUE | ||
| 19 | |||
| 20 | #include_next <halconf.h> | ||
| 21 | |||
diff --git a/keyboards/skyloong/dt40/info.json b/keyboards/skyloong/dt40/info.json new file mode 100644 index 0000000000..96c4131796 --- /dev/null +++ b/keyboards/skyloong/dt40/info.json | |||
| @@ -0,0 +1,165 @@ | |||
| 1 | { | ||
| 2 | "manufacturer": "JZ-Skyloong", | ||
| 3 | "keyboard_name": "DT40", | ||
| 4 | "maintainer": "JZ-Skyloong", | ||
| 5 | "bootloader": "stm32duino", | ||
| 6 | "diode_direction": "ROW2COL", | ||
| 7 | "features": { | ||
| 8 | "bootmagic": true, | ||
| 9 | "command": false, | ||
| 10 | "console": false, | ||
| 11 | "extrakey": true, | ||
| 12 | "mousekey": true, | ||
| 13 | "nkro": true, | ||
| 14 | "rgb_matrix": true | ||
| 15 | }, | ||
| 16 | "matrix_pins": { | ||
| 17 | "cols": ["B12", "B5", "B8", "B9", "B10", "B11", "A15", "B7", "A2", "A1", "A0"], | ||
| 18 | "rows": ["B6", "B15", "B2", "B14"] | ||
| 19 | }, | ||
| 20 | "processor": "STM32F103", | ||
| 21 | "rgb_matrix": { | ||
| 22 | "animations": { | ||
| 23 | "alphas_mods": true, | ||
| 24 | "band_pinwheel_sat": true, | ||
| 25 | "band_pinwheel_val": true, | ||
| 26 | "band_sat": true, | ||
| 27 | "band_spiral_sat": true, | ||
| 28 | "band_spiral_val": true, | ||
| 29 | "breathing": true, | ||
| 30 | "cycle_all": true, | ||
| 31 | "cycle_left_right": true, | ||
| 32 | "cycle_out_in": true, | ||
| 33 | "cycle_out_in_dual": true, | ||
| 34 | "cycle_pinwheel": true, | ||
| 35 | "cycle_spiral": true, | ||
| 36 | "cycle_up_down": true, | ||
| 37 | "dual_beacom": true, | ||
| 38 | "gradient_left_right": true, | ||
| 39 | "gradient_up_down": true, | ||
| 40 | "hue_breathing": true, | ||
| 41 | "hue_pendulum": true, | ||
| 42 | "hue_wave": true, | ||
| 43 | "jellybean_raindrops": true, | ||
| 44 | "pixel_fractal": true, | ||
| 45 | "pixel_rain": true, | ||
| 46 | "rainbow_moving_chevron": true, | ||
| 47 | "rainbow_pinwheels": true, | ||
| 48 | "raindrops": true, | ||
| 49 | "ranbow_beacon": true | ||
| 50 | }, | ||
| 51 | "driver": "WS2812", | ||
| 52 | "hue_steps": 20, | ||
| 53 | "layout": [ | ||
| 54 | {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4}, | ||
| 55 | {"matrix": [0, 1], "x": 28, "y": 0, "flags": 4}, | ||
| 56 | {"matrix": [0, 2], "x": 47, "y": 0, "flags": 4}, | ||
| 57 | {"matrix": [0, 3], "x": 65, "y": 0, "flags": 4}, | ||
| 58 | {"matrix": [0, 4], "x": 84, "y": 0, "flags": 4}, | ||
| 59 | {"matrix": [0, 5], "x": 103, "y": 0, "flags": 4}, | ||
| 60 | {"matrix": [0, 6], "x": 121, "y": 0, "flags": 4}, | ||
| 61 | {"matrix": [0, 7], "x": 140, "y": 0, "flags": 4}, | ||
| 62 | {"matrix": [0, 8], "x": 159, "y": 0, "flags": 4}, | ||
| 63 | {"matrix": [0, 9], "x": 177, "y": 0, "flags": 4}, | ||
| 64 | {"matrix": [0, 10], "x": 223, "y": 0, "flags": 4}, | ||
| 65 | {"matrix": [1, 0], "x": 0, "y": 21, "flags": 4}, | ||
| 66 | {"matrix": [1, 1], "x": 33, "y": 21, "flags": 4}, | ||
| 67 | {"matrix": [1, 2], "x": 51, "y": 21, "flags": 4}, | ||
| 68 | {"matrix": [1, 3], "x": 70, "y": 21, "flags": 4}, | ||
| 69 | {"matrix": [1, 4], "x": 89, "y": 21, "flags": 4}, | ||
| 70 | {"matrix": [1, 5], "x": 107, "y": 21, "flags": 4}, | ||
| 71 | {"matrix": [1, 6], "x": 126, "y": 21, "flags": 4}, | ||
| 72 | {"matrix": [1, 7], "x": 145, "y": 21, "flags": 4}, | ||
| 73 | {"matrix": [1, 8], "x": 182, "y": 21, "flags": 4}, | ||
| 74 | {"matrix": [1, 9], "x": 196, "y": 0, "flags": 4}, | ||
| 75 | {"matrix": [1, 10], "x": 219, "y": 21, "flags": 4}, | ||
| 76 | {"matrix": [2, 0], "x": 0, "y": 43, "flags": 4}, | ||
| 77 | {"matrix": [2, 1], "x": 42, "y": 43, "flags": 4}, | ||
| 78 | {"matrix": [2, 2], "x": 61, "y": 43, "flags": 4}, | ||
| 79 | {"matrix": [2, 3], "x": 79, "y": 43, "flags": 4}, | ||
| 80 | {"matrix": [2, 4], "x": 98, "y": 43, "flags": 4}, | ||
| 81 | {"matrix": [2, 5], "x": 117, "y": 43, "flags": 4}, | ||
| 82 | {"matrix": [2, 6], "x": 135, "y": 43, "flags": 4}, | ||
| 83 | {"matrix": [2, 7], "x": 154, "y": 43, "flags": 4}, | ||
| 84 | {"matrix": [2, 8], "x": 180, "y": 43, "flags": 4}, | ||
| 85 | {"matrix": [2, 9], "x": 205, "y": 43, "flags": 4}, | ||
| 86 | {"matrix": [2, 10], "x":224, "y": 43, "flags": 4}, | ||
| 87 | {"matrix": [3, 0], "x": 0, "y": 64, "flags": 4}, | ||
| 88 | {"matrix": [3, 1], "x": 23, "y": 64, "flags": 4}, | ||
| 89 | {"matrix": [3, 2], "x": 42, "y": 64, "flags": 4}, | ||
| 90 | {"matrix": [3, 3], "x": 63, "y": 64, "flags": 4}, | ||
| 91 | {"matrix": [3, 4], "x": 100, "y": 64, "flags": 4}, | ||
| 92 | {"matrix": [3, 5], "x": 163, "y":21, "flags": 4}, | ||
| 93 | {"matrix": [3, 6], "x": 145, "y": 64, "flags": 4}, | ||
| 94 | {"matrix": [3, 7], "x": 165, "y": 64, "flags": 4}, | ||
| 95 | {"matrix": [3, 8], "x": 187, "y": 64, "flags": 4}, | ||
| 96 | {"matrix": [3, 9], "x": 205, "y":64, "flags": 4}, | ||
| 97 | {"matrix": [3, 10], "x": 224, "y": 64, "flags": 4} | ||
| 98 | ], | ||
| 99 | "max_brightness": 180, | ||
| 100 | "sat_steps": 20, | ||
| 101 | "speed_steps": 20, | ||
| 102 | "val_steps": 20 | ||
| 103 | }, | ||
| 104 | "url": "https://github.com/JZ-Skyloong", | ||
| 105 | "usb": { | ||
| 106 | "device_version": "1.0.0", | ||
| 107 | "pid": "0x6040", | ||
| 108 | "vid": "0x1EA7" | ||
| 109 | }, | ||
| 110 | "ws2812": { | ||
| 111 | "driver": "pwm", | ||
| 112 | "pin": "B4" | ||
| 113 | }, | ||
| 114 | "layouts": { | ||
| 115 | "LAYOUT": { | ||
| 116 | "layout": [ | ||
| 117 | {"matrix": [0, 0], "x": 0, "y": 0, "w": 1.5}, | ||
| 118 | {"matrix": [0, 1], "x": 1.5, "y": 0}, | ||
| 119 | {"matrix": [0, 2], "x": 2.5, "y": 0}, | ||
| 120 | {"matrix": [0, 3], "x": 3.5, "y": 0}, | ||
| 121 | {"matrix": [0, 4], "x": 4.5, "y": 0}, | ||
| 122 | {"matrix": [0, 5], "x": 5.5, "y": 0}, | ||
| 123 | {"matrix": [0, 6], "x": 6.5, "y": 0}, | ||
| 124 | {"matrix": [0, 7], "x": 7.5, "y": 0}, | ||
| 125 | {"matrix": [0, 8], "x": 8.5, "y": 0}, | ||
| 126 | {"matrix": [0, 9], "x": 9.5, "y": 0}, | ||
| 127 | {"matrix": [0, 10], "x": 11.5, "y": 0, "w": 1.5}, | ||
| 128 | {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.75}, | ||
| 129 | {"matrix": [1, 1], "x": 1.75, "y": 1}, | ||
| 130 | {"matrix": [1, 2], "x": 2.75, "y": 1}, | ||
| 131 | {"matrix": [1, 3], "x": 3.75, "y": 1}, | ||
| 132 | {"matrix": [1, 4], "x": 4.75, "y": 1}, | ||
| 133 | {"matrix": [1, 5], "x": 5.75, "y": 1}, | ||
| 134 | {"matrix": [1, 6], "x": 6.75, "y": 1}, | ||
| 135 | {"matrix": [1, 7], "x": 7.75, "y": 1}, | ||
| 136 | {"matrix": [1, 8], "x": 9.75, "y": 1}, | ||
| 137 | {"matrix": [1, 9], "x": 10.5, "y": 0}, | ||
| 138 | {"matrix": [1, 10], "x": 10.75, "y": 1, "w": 2.25}, | ||
| 139 | {"matrix": [2, 0], "x": 0, "y": 2, "w": 2.25}, | ||
| 140 | {"matrix": [2, 1], "x": 2.25, "y": 2}, | ||
| 141 | {"matrix": [2, 2], "x": 3.25, "y": 2}, | ||
| 142 | {"matrix": [2, 3], "x": 4.25, "y": 2}, | ||
| 143 | {"matrix": [2, 4], "x": 5.25, "y": 2}, | ||
| 144 | {"matrix": [2, 5], "x": 6.25, "y": 2}, | ||
| 145 | {"matrix": [2, 6], "x": 7.25, "y": 2}, | ||
| 146 | {"matrix": [2, 7], "x": 8.25, "y": 2}, | ||
| 147 | {"matrix": [2, 8], "x": 9.25, "y": 2, "w": 1.75}, | ||
| 148 | {"matrix": [2, 9], "x": 11, "y": 2}, | ||
| 149 | {"matrix": [2, 10], "x": 12, "y": 2}, | ||
| 150 | {"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25}, | ||
| 151 | {"matrix": [3, 1], "x": 1.25, "y": 3}, | ||
| 152 | {"matrix": [3, 2], "x": 2.25, "y": 3}, | ||
| 153 | {"matrix": [3, 3], "x": 3.25, "y": 3, "w": 1.25}, | ||
| 154 | {"matrix": [3, 4], "x": 4.5, "y": 3, "w": 3}, | ||
| 155 | {"matrix": [3, 5], "x": 8.75, "y": 1}, | ||
| 156 | {"matrix": [3, 6], "x": 7.5, "y": 3, "w": 1.25}, | ||
| 157 | {"matrix": [3, 7], "x": 8.75, "y": 3, "w": 1.25}, | ||
| 158 | {"matrix": [3, 8], "x": 10, "y": 3}, | ||
| 159 | {"matrix": [3, 9], "x": 11, "y": 3}, | ||
| 160 | {"matrix": [3, 10], "x": 12, "y": 3} | ||
| 161 | ] | ||
| 162 | } | ||
| 163 | } | ||
| 164 | } | ||
| 165 | |||
diff --git a/keyboards/skyloong/dt40/keymaps/default/keymap.c b/keyboards/skyloong/dt40/keymaps/default/keymap.c new file mode 100644 index 0000000000..c8f828156a --- /dev/null +++ b/keyboards/skyloong/dt40/keymaps/default/keymap.c | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /* Copyright 2021 JZ-Skyloong (@JZ-Skyloong) | ||
| 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 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | /* Base */ | ||
| 22 | [0] = LAYOUT( | ||
| 23 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_O, KC_I, KC_BSPC, | ||
| 24 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_L, KC_P, KC_ENT, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_RSFT, KC_UP, RGB_TOG, | ||
| 26 | KC_LCTL, KC_LALT, KC_SPC, KC_LWIN, KC_SPC, KC_K, KC_SPC, KC_APP, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 27 | ) | ||
| 28 | }; | ||
| 29 | |||
| 30 | |||
diff --git a/keyboards/skyloong/dt40/keymaps/via/keymap.c b/keyboards/skyloong/dt40/keymaps/via/keymap.c new file mode 100644 index 0000000000..40721123cd --- /dev/null +++ b/keyboards/skyloong/dt40/keymaps/via/keymap.c | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* Copyright 2021 JZ-Skyloong (@JZ-Skyloong) | ||
| 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 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | // Defines names for use in layer keycodes and the keymap | ||
| 21 | enum layer_names { | ||
| 22 | _QWERTY, | ||
| 23 | _LOWER, | ||
| 24 | _RAISE, | ||
| 25 | _ADJUST, | ||
| 26 | }; | ||
| 27 | |||
| 28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 29 | /* Base */ | ||
| 30 | [_QWERTY] = LAYOUT( | ||
| 31 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_O, KC_I, KC_BSPC, | ||
| 32 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_L, KC_P, KC_ENT, | ||
| 33 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_RSFT, KC_UP, MO(3), | ||
| 34 | KC_LCTL, KC_LALT, MO(1), KC_LWIN, KC_SPC, KC_K, MO(2), KC_APP, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 35 | ), | ||
| 36 | |||
| 37 | [_LOWER] = LAYOUT( | ||
| 38 | RGB_TOG, RGB_M_P, RGB_M_R, RGB_M_B, RGB_M_SW, _______, _______, _______, KC_EQL, KC_MINS, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, KC_RBRC, KC_BSLS, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, | ||
| 41 | _______, _______, _______, _______, _______, KC_LBRC, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD | ||
| 42 | ), | ||
| 43 | |||
| 44 | [_RAISE] = LAYOUT( | ||
| 45 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_9, KC_8, _______, | ||
| 46 | KC_TAB, KC_GRV, _______, _______, _______, _______, _______, KC_SCLN, _______, KC_0, _______, | ||
| 47 | _______, _______, _______, _______, _______, KC_COMM, KC_DOT, KC_SLSH, _______, _______, _______, | ||
| 48 | _______, _______, _______, _______, _______, KC_QUOT, _______, _______, _______, _______, _______ | ||
| 49 | ), | ||
| 50 | |||
| 51 | [_ADJUST] = LAYOUT( | ||
| 52 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F9, KC_F8, _______, | ||
| 53 | _______, _______, _______, _______, _______, _______, _______, _______, KC_F12, KC_F10, _______, | ||
| 54 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 55 | _______, _______, _______, _______, _______, KC_F11, _______, _______, _______, _______, _______ | ||
| 56 | ) | ||
| 57 | |||
| 58 | }; | ||
| 59 | |||
diff --git a/keyboards/skyloong/dt40/keymaps/via/rules.mk b/keyboards/skyloong/dt40/keymaps/via/rules.mk new file mode 100644 index 0000000000..1e5b99807c --- /dev/null +++ b/keyboards/skyloong/dt40/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/skyloong/dt40/mcuconf.h b/keyboards/skyloong/dt40/mcuconf.h new file mode 100644 index 0000000000..a40226eaaa --- /dev/null +++ b/keyboards/skyloong/dt40/mcuconf.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2021 JZ-Skyloong (@JZ-Skyloong) | ||
| 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 | |||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | #include_next <mcuconf.h> | ||
| 22 | |||
| 23 | #undef STM32_PWM_USE_TIM3 | ||
| 24 | #define STM32_PWM_USE_TIM3 TRUE | ||
diff --git a/keyboards/skyloong/dt40/readme.md b/keyboards/skyloong/dt40/readme.md new file mode 100644 index 0000000000..bbb97d3932 --- /dev/null +++ b/keyboards/skyloong/dt40/readme.md | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # DT40 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | ## The PCB features: | ||
| 6 | * QMK & VIA compatibility | ||
| 7 | * RGB Matrix backlight | ||
| 8 | * Thin body & Simple keys | ||
| 9 | |||
| 10 | |||
| 11 | The following is the QMK Firmware for the Destop 40% keylayout - designed in Dongguan Jizhi Electronic Technology Co., Ltd | ||
| 12 | * Keyboard Maintainer: [JZ-Skyloong](https://github.com/JZ-Skyloong) | ||
| 13 | * Hardware Supported: DestopPCB for Skyloong keylayout 40%, STM32F103C8T6 | ||
| 14 | * Hardware Availability: http://www.skyloong.com.cn | ||
| 15 | |||
| 16 | Make example for this keyboard (after setting up your build environment): | ||
| 17 | |||
| 18 | make skyloong/dt40:default | ||
| 19 | |||
| 20 | Flashing example for this keyboard: | ||
| 21 | |||
| 22 | make skyloong/dt40:default:flash | ||
| 23 | |||
| 24 | 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). | ||
| 25 | |||
| 26 | ## Bootloader | ||
| 27 | |||
| 28 | Enter the bootloader in 3 ways: | ||
| 29 | |||
| 30 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 31 | * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead | ||
| 32 | * **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available | ||
diff --git a/keyboards/skyloong/dt40/rules.mk b/keyboards/skyloong/dt40/rules.mk new file mode 100644 index 0000000000..6e7633bfe0 --- /dev/null +++ b/keyboards/skyloong/dt40/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # This file intentionally left blank | |||
