summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/sets3n/kk980/config.h103
-rw-r--r--keyboards/sets3n/kk980/info.json116
-rw-r--r--keyboards/sets3n/kk980/keymaps/default/keymap.c91
-rw-r--r--keyboards/sets3n/kk980/keymaps/via/keymap.c91
-rw-r--r--keyboards/sets3n/kk980/keymaps/via/rules.mk1
-rw-r--r--keyboards/sets3n/kk980/kk980.c17
-rw-r--r--keyboards/sets3n/kk980/kk980.h34
-rw-r--r--keyboards/sets3n/kk980/readme.md31
-rw-r--r--keyboards/sets3n/kk980/rules.mk21
9 files changed, 505 insertions, 0 deletions
diff --git a/keyboards/sets3n/kk980/config.h b/keyboards/sets3n/kk980/config.h
new file mode 100644
index 0000000000..016ab0d460
--- /dev/null
+++ b/keyboards/sets3n/kk980/config.h
@@ -0,0 +1,103 @@
+/* Copyright 2021 Sets3n
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x404A
+#define PRODUCT_ID 0x0002
+#define DEVICE_VER 0x0001
+#define MANUFACTURER Sets3n
+#define PRODUCT kk980
+
+/* key matrix size */
+#define MATRIX_ROWS 6
+#define MATRIX_COLS 17
+
+/*
+ * Keyboard Matrix Assignments
+ *
+ * Change this to how you wired your keyboard
+ * COLS: AVR pins used for columns, left to right
+ * ROWS: AVR pins used for rows, top to bottom
+ * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
+ * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
+ *
+ */
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { B2, B3, D3, D4, D5, D6 }
+#define MATRIX_COL_PINS { E6, F0, F1, F4, F5, F6, F7, C7, C6, B6, B5, B4, D7, B1, B0, D0, D1 }
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* number of backlight levels */
+
+#ifdef BACKLIGHT_PIN
+#define BACKLIGHT_LEVELS 8
+#endif
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+#define RGBLIGHT_EFFECT_BREATHING
+#define RGBLIGHT_EFFECT_RAINBOW_MOOD
+#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
+#define RGBLIGHT_EFFECT_SNAKE
+#define RGBLIGHT_EFFECT_KNIGHT
+#define RGBLIGHT_EFFECT_CHRISTMAS
+#define RGBLIGHT_EFFECT_STATIC_GRADIENT
+#define RGBLIGHT_EFFECT_RGB_TEST
+#define RGBLIGHT_EFFECT_ALTERNATING
+#define RGBLIGHT_EFFECT_TWINKLE
+
+#define RGB_DI_PIN B7
+#ifdef RGB_DI_PIN
+#define RGBLED_NUM 102
+#define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,\
+ 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, \
+ 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, \
+ 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, \
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, \
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, \
+ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, \
+ 96, 97, 98, 99, 100, 101, 102 } // 1 --> ScollLock 2 --> CapsLock 3 --> Bluetooth 4 --> NumLock
+#define RGBLIGHT_HUE_STEP 8
+#define RGBLIGHT_SAT_STEP 8
+#define RGBLIGHT_VAL_STEP 8
+#define RGBLIGHT_LIMIT_VAL 230
+#define RGBLIGHT_LAYERS
+#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
+#endif
+
+#ifdef RGB_MATRIX_ENABLE
+#define DRIVER_LED_TOTAL RGBLED_NUM
+#define RGB_MATRIX_KEYPRESSES
+#endif
+
+#define BOOTMAGIC_LITE_ROW 0
+#define BOOTMAGIC_LITE_COLUMN 0
+
diff --git a/keyboards/sets3n/kk980/info.json b/keyboards/sets3n/kk980/info.json
new file mode 100644
index 0000000000..e6622d14bf
--- /dev/null
+++ b/keyboards/sets3n/kk980/info.json
@@ -0,0 +1,116 @@
+{
+ "keyboard_name": "kk980",
+ "url": "https://i.imgur.com/MQA6FXb.jpg",
+ "maintainer": "Sets3n",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"label":"ESC", "x": 0, "y": 0},
+ {"label":"F1", "x": 2, "y": 0},
+ {"label":"F2", "x": 3, "y": 0},
+ {"label":"F3", "x": 4, "y": 0},
+ {"label":"F4", "x": 5, "y": 0},
+ {"label":"F5", "x": 6.5, "y": 0},
+ {"label":"F6", "x": 7.5, "y": 0},
+ {"label":"F7", "x": 8.5, "y": 0},
+ {"label":"F8", "x": 9.5, "y": 0},
+ {"label":"F9", "x": 11, "y": 0},
+ {"label":"F10", "x": 12, "y": 0},
+ {"label":"F11", "x": 13, "y": 0},
+ {"label":"F12", "x": 14, "y": 0},
+ {"label":"DEL", "x": 15.5, "y": 0},
+ {"label":"INSERT", "x": 16.5, "y": 0},
+ {"label":"PGUP", "x": 17.5, "y": 0},
+ {"label":"PGDN", "x": 18.5, "y": 0},
+
+ {"label":"`~", "x": 0, "y": 1.5},
+ {"label":"1!", "x": 1, "y": 1.5},
+ {"label":"2@", "x": 2, "y": 1.5},
+ {"label":"3#", "x": 3, "y": 1.5},
+ {"label":"4$", "x": 4, "y": 1.5},
+ {"label":"5%", "x": 5, "y": 1.5},
+ {"label":"6^", "x": 6, "y": 1.5},
+ {"label":"7&", "x": 7, "y": 1.5},
+ {"label":"8*", "x": 8, "y": 1.5},
+ {"label":"9(", "x": 9, "y": 1.5},
+ {"label":"0)", "x": 10, "y": 1.5},
+ {"label":"-_", "x": 11, "y": 1.5},
+ {"label":"+=", "x": 12, "y": 1.5},
+ {"label":"BS", "x": 13, "y": 1.5, "w": 2},
+ {"label":"NUML", "x": 15.5, "y": 1.5},
+ {"label":"/", "x": 16.5, "y": 1.5},
+ {"label":"*", "x": 17.5, "y": 1.5},
+ {"label":"-", "x": 18.5, "y": 1.5},
+
+ {"label":"TAB", "x": 0, "y": 2.5, "w": 1.5},
+ {"label":"Q", "x": 1.5, "y": 2.5},
+ {"label":"W", "x": 2.5, "y": 2.5},
+ {"label":"E", "x": 3.5, "y": 2.5},
+ {"label":"R", "x": 4.5, "y": 2.5},
+ {"label":"T", "x": 5.5, "y": 2.5},
+ {"label":"Y", "x": 6.5, "y": 2.5},
+ {"label":"U", "x": 7.5, "y": 2.5},
+ {"label":"I", "x": 8.5, "y": 2.5},
+ {"label":"O", "x": 9.5, "y": 2.5},
+ {"label":"P", "x": 10.5, "y": 2.5},
+ {"label":"[{", "x": 11.5, "y": 2.5},
+ {"label":"]}", "x": 12.5, "y": 2.5},
+ {"label":"\\|", "x": 13.5, "y": 2.5, "w": 1.5},
+ {"label":"7", "x": 15.5, "y": 2.5},
+ {"label":"8", "x": 16.5, "y": 2.5},
+ {"label":"9", "x": 17.5, "y": 2.5},
+
+ {"label":"CAPS", "x": 0, "y": 3.5, "w": 1.75},
+ {"label":"A", "x": 1.75, "y": 3.5},
+ {"label":"S", "x": 2.75, "y": 3.5},
+ {"label":"D", "x": 3.75, "y": 3.5},
+ {"label":"F", "x": 4.75, "y": 3.5},
+ {"label":"G", "x": 5.75, "y": 3.5},
+ {"label":"H", "x": 6.75, "y": 3.5},
+ {"label":"J", "x": 7.75, "y": 3.5},
+ {"label":"K", "x": 8.75, "y": 3.5},
+ {"label":"L", "x": 9.75, "y": 3.5},
+ {"label":";:", "x": 10.75, "y": 3.5},
+ {"label":"'\"", "x": 11.75, "y": 3.5},
+ {"label":"RETURN", "x": 12.75, "y": 3.5, "w": 2.25},
+ {"label":"4", "x": 15.5, "y": 3.5, "w": 1.5},
+ {"label":"5", "x": 16.5, "y": 3.5},
+ {"label":"6", "x": 17.5, "y": 3.5},
+ {"label":"+", "x": 18.5, "y": 3.5, "h": 2},
+
+ {"label":"LSHIFT", "x": 0, "y": 4.5, "w": 2.25},
+ {"label":"Z", "x": 2.25, "y": 4.5},
+ {"label":"X", "x": 3.25, "y": 4.5},
+ {"label":"C", "x": 4.25, "y": 4.5},
+ {"label":"V", "x": 5.25, "y": 4.5},
+ {"label":"B", "x": 6.25, "y": 4.5},
+ {"label":"N", "x": 7.25, "y": 4.5},
+ {"label":"M", "x": 8.25, "y": 4.5},
+ {"label":",<", "x": 9.25, "y": 4.5},
+ {"label":".>", "x": 10.25, "y": 4.5},
+ {"label":"/?", "x": 11.25, "y": 4.5},
+ {"label":"RSHIFT", "x": 12.25, "y": 4.5, "w": 1.75},
+ {"label":"up", "x": 14.25, "y": 4.75},
+ {"label":"1", "x": 15.5, "y": 4.5},
+ {"label":"2", "x": 16.5, "y": 4.5},
+ {"label":"3", "x": 17.5, "y": 4.5},
+
+ {"label":"LCTRL", "x": 0, "y": 5.5, "w": 1.25},
+ {"label":"LWIN", "x": 1.25, "y": 5.5},
+ {"label":"LALT", "x": 2.25, "y": 5.5, "w": 1.25},
+ {"label":"SPACE", "x": 3.25, "y": 5.5, "w": 6.25},
+ {"label":"RALT", "x": 9.5, "y": 5.5},
+ {"label":"FN", "x": 10.5, "y": 5.5},
+ {"label":"RCTRL", "x": 11.5, "y": 5.5, "w": 1.25},
+ {"label":"LEFT", "x": 13, "y": 5.75},
+ {"label":"DOWN", "x": 14, "y": 5.75},
+ {"label":"RIGHT", "x": 15, "y": 5.75},
+ {"label":"0", "x": 16.5, "y": 5.5},
+ {"label":".DEL", "x": 17.5, "y": 5.5, "w": 2.75},
+ {"label":"ENTER", "x": 18.5, "y": 5.5, "h": 2}
+
+ ]
+ }
+ }
+}
+
diff --git a/keyboards/sets3n/kk980/keymaps/default/keymap.c b/keyboards/sets3n/kk980/keymaps/default/keymap.c
new file mode 100644
index 0000000000..171cdb2127
--- /dev/null
+++ b/keyboards/sets3n/kk980/keymaps/default/keymap.c
@@ -0,0 +1,91 @@
+/* Copyright 2021 Sets3n
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [0] = LAYOUT(
+ 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_DEL, KC_INS, KC_PGDN, KC_PGUP,
+ 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_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
+ 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_P7, KC_P8, KC_P9,
+ 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, KC_P4, KC_P5, KC_P6, KC_PPLS,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3,
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_BSPC, KC_BSLS, KC_RALT, KC_RGUI, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT),
+
+ [1] = LAYOUT(
+ 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,
+ 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,
+ KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, 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, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_DEC, BL_INC, BL_STEP, 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, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
+
+
+};
+
+
+//以下是RGB灯作为层切换指示
+const rgblight_segment_t PROGMEM my_scroll_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {1, 1, HSV_CYAN}
+);
+
+const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {2, 1, HSV_MAGENTA},
+ {56, 1, HSV_CYAN}
+);
+
+
+const rgblight_segment_t PROGMEM my_bluetooth_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {3, 1, HSV_WHITE}
+);
+
+const rgblight_segment_t PROGMEM my_numlocak_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {4, 1, HSV_GREEN},
+ {35, 1, HSV_RED}
+);
+
+// Define the array of layers. Later layers take precedence
+const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
+ my_scroll_layer,
+ my_capslock_layer,
+ my_bluetooth_layer,
+ my_numlocak_layer
+);
+
+void keyboard_post_init_user(void){
+ //Enable the LED layers
+ rgblight_layers = my_rgb_layers;
+}
+
+// Enabling and disabling lighting layers
+layer_state_t layer_state_set_user(layer_state_t state) {
+ // Both layers will light up if both kb layers are active
+ rgblight_set_layer_state(0, layer_state_cmp(state, 0));
+ rgblight_set_layer_state(1, layer_state_cmp(state, 1));
+ rgblight_set_layer_state(3, layer_state_cmp(state, 3));
+
+ return state;
+}
+
+bool led_update_user(led_t led_state) {
+ rgblight_set_layer_state(0, led_state.scroll_lock);
+ rgblight_set_layer_state(1, led_state.caps_lock);
+ rgblight_set_layer_state(3, led_state.num_lock);
+
+ return true;
+}
+
diff --git a/keyboards/sets3n/kk980/keymaps/via/keymap.c b/keyboards/sets3n/kk980/keymaps/via/keymap.c
new file mode 100644
index 0000000000..171cdb2127
--- /dev/null
+++ b/keyboards/sets3n/kk980/keymaps/via/keymap.c
@@ -0,0 +1,91 @@
+/* Copyright 2021 Sets3n
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [0] = LAYOUT(
+ 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_DEL, KC_INS, KC_PGDN, KC_PGUP,
+ 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_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
+ 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_P7, KC_P8, KC_P9,
+ 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, KC_P4, KC_P5, KC_P6, KC_PPLS,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3,
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_BSPC, KC_BSLS, KC_RALT, KC_RGUI, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT),
+
+ [1] = LAYOUT(
+ 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,
+ 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,
+ KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, 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, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_DEC, BL_INC, BL_STEP, 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, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
+
+
+};
+
+
+//以下是RGB灯作为层切换指示
+const rgblight_segment_t PROGMEM my_scroll_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {1, 1, HSV_CYAN}
+);
+
+const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {2, 1, HSV_MAGENTA},
+ {56, 1, HSV_CYAN}
+);
+
+
+const rgblight_segment_t PROGMEM my_bluetooth_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {3, 1, HSV_WHITE}
+);
+
+const rgblight_segment_t PROGMEM my_numlocak_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {4, 1, HSV_GREEN},
+ {35, 1, HSV_RED}
+);
+
+// Define the array of layers. Later layers take precedence
+const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
+ my_scroll_layer,
+ my_capslock_layer,
+ my_bluetooth_layer,
+ my_numlocak_layer
+);
+
+void keyboard_post_init_user(void){
+ //Enable the LED layers
+ rgblight_layers = my_rgb_layers;
+}
+
+// Enabling and disabling lighting layers
+layer_state_t layer_state_set_user(layer_state_t state) {
+ // Both layers will light up if both kb layers are active
+ rgblight_set_layer_state(0, layer_state_cmp(state, 0));
+ rgblight_set_layer_state(1, layer_state_cmp(state, 1));
+ rgblight_set_layer_state(3, layer_state_cmp(state, 3));
+
+ return state;
+}
+
+bool led_update_user(led_t led_state) {
+ rgblight_set_layer_state(0, led_state.scroll_lock);
+ rgblight_set_layer_state(1, led_state.caps_lock);
+ rgblight_set_layer_state(3, led_state.num_lock);
+
+ return true;
+}
+
diff --git a/keyboards/sets3n/kk980/keymaps/via/rules.mk b/keyboards/sets3n/kk980/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/sets3n/kk980/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes
diff --git a/keyboards/sets3n/kk980/kk980.c b/keyboards/sets3n/kk980/kk980.c
new file mode 100644
index 0000000000..d5254b3fc0
--- /dev/null
+++ b/keyboards/sets3n/kk980/kk980.c
@@ -0,0 +1,17 @@
+/* Copyright 2021 Sets3n
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "kk980.h"
diff --git a/keyboards/sets3n/kk980/kk980.h b/keyboards/sets3n/kk980/kk980.h
new file mode 100644
index 0000000000..238d124beb
--- /dev/null
+++ b/keyboards/sets3n/kk980/kk980.h
@@ -0,0 +1,34 @@
+/* Copyright 2021 Sets3n
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#pragma once
+
+#include "quantum.h"
+
+#define LAYOUT( \
+ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, \
+ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
+ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \
+ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, \
+ K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, \
+ K500, K501, K502, K505, K506, K507, K508, K509, K510, K511, K512, K513, K514, K515, K516 \
+) { \
+ { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016 }, \
+ { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \
+ { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, KC_NO }, \
+ { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316 }, \
+ { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, KC_NO }, \
+ { K500, K501, K502, KC_NO, KC_NO, K505, K506, K507, K508, K509, K510, K511, K512, K513, K514, K515, K516 } \
+}
diff --git a/keyboards/sets3n/kk980/readme.md b/keyboards/sets3n/kk980/readme.md
new file mode 100644
index 0000000000..0a1142e571
--- /dev/null
+++ b/keyboards/sets3n/kk980/readme.md
@@ -0,0 +1,31 @@
+# kk980
+
+![kk980](https://i.imgur.com/NDsBMR6.jpg)
+
+A hotswap 98% RGB Mechanical keyboard.
+
+* Keyboard Maintainer: [sets3n](https://github.com/sets3n)
+* Hardware Supported: kk980 PCB
+* Hardware Availability: -
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
+* **Keycode in layout**: Press the key mapped to `RESET` if it is available
+
+## HEX
+
+Make example for this keyboard (after setting up your build environment):
+
+ make sets3n/kk980:default
+
+## FLASH
+
+Flashing example for this keyboard:
+
+ make sets3n/kk980:default:flash
+
+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/sets3n/kk980/rules.mk b/keyboards/sets3n/kk980/rules.mk
new file mode 100644
index 0000000000..1047658606
--- /dev/null
+++ b/keyboards/sets3n/kk980/rules.mk
@@ -0,0 +1,21 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+BOOTLOADER = atmel-dfu
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+# # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = yes # USB Nkey Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output