diff --git a/keyboards/flesports/fl980/config.h b/keyboards/flesports/fl980/config.h new file mode 100644 index 000000000000..d83bd47cc27a --- /dev/null +++ b/keyboards/flesports/fl980/config.h @@ -0,0 +1,86 @@ +/* Copyright (C) 2023 Alexey Zagorodnikov + * + * 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 . + */ + +#pragma once + +#include "config_common.h" + +#define LED_MATRIX_ROWS MATRIX_ROWS +#define LED_MATRIX_ROW_CHANNELS 3 +#define LED_MATRIX_ROWS_HW (LED_MATRIX_ROWS * LED_MATRIX_ROW_CHANNELS) +#define LED_MATRIX_ROW_PINS { C0,C1,C3, C4,C5,C6, C7,C8,C9, C10,C11,C12, C13,C14,B13, C15,B15,B14 } + +#define LED_MATRIX_COLS MATRIX_COLS +#define LED_MATRIX_COL_PINS { B9, A8, A9, A10, A11, A12, A13, A14, A15, B0, B1, B2, B3, B4, B5, B6, B7, B8 } + +#define RGB_MATRIX_LED_COUNT 98 +#define MATRIX_UNSELECT_DRIVE_HIGH +#define PWM_OUTPUT_ACTIVE_LEVEL PWM_OUTPUT_ACTIVE_HIGH +#define RGB_OUTPUT_ACTIVE_LEVEL PWM_OUTPUT_ACTIVE_HIGH + +/* RGB Non-Reactive Effects */ +#define ENABLE_RGB_MATRIX_ALPHAS_MODS +#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN +#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT +#define ENABLE_RGB_MATRIX_BREATHING +#define ENABLE_RGB_MATRIX_BAND_SAT +#define ENABLE_RGB_MATRIX_BAND_VAL +#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT +#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL +#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT +#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL +#define ENABLE_RGB_MATRIX_CYCLE_ALL +#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT +#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN +#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON +#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN +#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL +#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL +#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL +#define ENABLE_RGB_MATRIX_DUAL_BEACON +#define ENABLE_RGB_MATRIX_RAINBOW_BEACON +#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS +#define ENABLE_RGB_MATRIX_RAINDROPS +#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS +#define ENABLE_RGB_MATRIX_HUE_BREATHING +#define ENABLE_RGB_MATRIX_HUE_PENDULUM +#define ENABLE_RGB_MATRIX_HUE_WAVE +#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL +#define ENABLE_RGB_MATRIX_PIXEL_RAIN +#define ENABLE_RGB_MATRIX_TYPING_HEATMAP +#define ENABLE_RGB_MATRIX_DIGITAL_RAIN + +/* RGB Reactive Effects Toggle */ +#define RGB_MATRIX_FRAMEBUFFER_EFFECTS +#define RGB_MATRIX_KEYPRESSES +//#define RGB_MATRIX_KEYRELEASES + +/* RGB Reactive Effects */ +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS +#define ENABLE_RGB_MATRIX_SPLASH +#define ENABLE_RGB_MATRIX_MULTISPLASH +#define ENABLE_RGB_MATRIX_SOLID_SPLASH +#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH + +/* Enable RGB sleep */ +#define RGB_DISABLE_WHEN_USB_SUSPENDED true diff --git a/keyboards/flesports/fl980/fl980.h b/keyboards/flesports/fl980/fl980.h new file mode 100644 index 000000000000..91170d1b232d --- /dev/null +++ b/keyboards/flesports/fl980/fl980.h @@ -0,0 +1,20 @@ +/* Copyright (C) 2023 Alexey Zagorodnikov + * + * 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 . + */ + +#pragma once + +#include "quantum.h" + diff --git a/keyboards/flesports/fl980/info.json b/keyboards/flesports/fl980/info.json new file mode 100644 index 000000000000..6c0128ad2a90 --- /dev/null +++ b/keyboards/flesports/fl980/info.json @@ -0,0 +1,248 @@ +{ + "keyboard_name": "FL980", + "manufacturer": "FL-Esports", + "url": "http://www.flesports.com/en/product/keyboard/view-2906.html", + "maintainer": "iglooom", + "usb": { + "vid": "0x0C45", + "pid": "0x5004", + "device_version": "1.0.0", + "force_nkro": true + }, + "processor": "SN32F248BF", + "bootloader": "sn32-dfu", + "diode_direction": "ROW2COL", + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": false, + "nkro": true, + "rgb_matrix": true + }, + "debounce": 3, + "indicators": { + "caps_lock": "A5", + "num_lock": "A6", + "scroll_lock": "A4", + "on_state": 0 + }, + "matrix_pins": { + "cols": ["A8", "A9", "A10", "A11", "A12", "A13", "A14", "A15", "B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9"], + "rows": ["D4", "D11", "D10", "D9", "D8", "D7"] + }, + "rgb_matrix": { + "driver": "SN32F24xB", + "layout": [ + { "matrix":[0, 0], "flags":4, "x":0, "y":0 }, + { "matrix":[0, 1], "flags":4, "x":24, "y":0 }, + { "matrix":[0, 2], "flags":4, "x":36, "y":0 }, + { "matrix":[0, 3], "flags":4, "x":48, "y":0 }, + { "matrix":[0, 4], "flags":4, "x":61, "y":0 }, + { "matrix":[0, 5], "flags":4, "x":79, "y":0 }, + { "matrix":[0, 6], "flags":4, "x":91, "y":0 }, + { "matrix":[0, 7], "flags":4, "x":103, "y":0 }, + { "matrix":[0, 8], "flags":4, "x":115, "y":0 }, + { "matrix":[0, 9], "flags":4, "x":133, "y":0 }, + { "matrix":[0, 10], "flags":4, "x":145, "y":0 }, + { "matrix":[0, 11], "flags":4, "x":157, "y":0 }, + { "matrix":[0, 12], "flags":4, "x":170, "y":0 }, + { "matrix":[0, 14], "flags":4, "x":188, "y":0 }, + { "matrix":[0, 15], "flags":4, "x":200, "y":0 }, + { "matrix":[0, 16], "flags":4, "x":212, "y":0 }, + { "matrix":[0, 17], "flags":4, "x":224, "y":0 }, + + { "matrix":[1, 0], "flags":4, "x":0, "y":15 }, + { "matrix":[1, 1], "flags":4, "x":12, "y":15 }, + { "matrix":[1, 2], "flags":4, "x":24, "y":15 }, + { "matrix":[1, 3], "flags":4, "x":36, "y":15 }, + { "matrix":[1, 4], "flags":4, "x":48, "y":15 }, + { "matrix":[1, 5], "flags":4, "x":61, "y":15 }, + { "matrix":[1, 6], "flags":4, "x":73, "y":15 }, + { "matrix":[1, 7], "flags":4, "x":85, "y":15 }, + { "matrix":[1, 8], "flags":4, "x":97, "y":15 }, + { "matrix":[1, 9], "flags":4, "x":109, "y":15 }, + { "matrix":[1, 10], "flags":4, "x":121, "y":15 }, + { "matrix":[1, 11], "flags":4, "x":133, "y":15 }, + { "matrix":[1, 12], "flags":4, "x":145, "y":15 }, + { "matrix":[1, 13], "flags":4, "x":163, "y":15 }, + { "matrix":[1, 14], "flags":4, "x":188, "y":15 }, + { "matrix":[1, 15], "flags":4, "x":200, "y":15 }, + { "matrix":[1, 16], "flags":4, "x":212, "y":15 }, + { "matrix":[1, 17], "flags":4, "x":224, "y":15 }, + + { "matrix":[2, 0], "flags":4, "x":3, "y":26 }, + { "matrix":[2, 1], "flags":4, "x":18, "y":26 }, + { "matrix":[2, 2], "flags":4, "x":30, "y":26 }, + { "matrix":[2, 3], "flags":4, "x":42, "y":26 }, + { "matrix":[2, 4], "flags":4, "x":54, "y":26 }, + { "matrix":[2, 5], "flags":4, "x":67, "y":26 }, + { "matrix":[2, 6], "flags":4, "x":79, "y":26 }, + { "matrix":[2, 7], "flags":4, "x":91, "y":26 }, + { "matrix":[2, 8], "flags":4, "x":103, "y":26 }, + { "matrix":[2, 9], "flags":4, "x":115, "y":26 }, + { "matrix":[2, 10], "flags":4, "x":127, "y":26 }, + { "matrix":[2, 11], "flags":4, "x":139, "y":26 }, + { "matrix":[2, 12], "flags":4, "x":151, "y":26 }, + { "matrix":[2, 13], "flags":4, "x":166, "y":26 }, + { "matrix":[2, 14], "flags":4, "x":188, "y":26 }, + { "matrix":[2, 15], "flags":4, "x":200, "y":26 }, + { "matrix":[2, 16], "flags":4, "x":212, "y":26 }, + { "matrix":[2, 17], "flags":4, "x":224, "y":32 }, + + { "matrix":[3, 0], "flags":4, "x":5, "y":38 }, + { "matrix":[3, 1], "flags":4, "x":21, "y":38 }, + { "matrix":[3, 2], "flags":4, "x":33, "y":38 }, + { "matrix":[3, 3], "flags":4, "x":45, "y":38 }, + { "matrix":[3, 4], "flags":4, "x":58, "y":38 }, + { "matrix":[3, 5], "flags":4, "x":70, "y":38 }, + { "matrix":[3, 6], "flags":4, "x":82, "y":38 }, + { "matrix":[3, 7], "flags":4, "x":94, "y":38 }, + { "matrix":[3, 8], "flags":4, "x":106, "y":38 }, + { "matrix":[3, 9], "flags":4, "x":118, "y":38 }, + { "matrix":[3, 10], "flags":4, "x":130, "y":38 }, + { "matrix":[3, 11], "flags":4, "x":142, "y":38 }, + { "matrix":[3, 13], "flags":4, "x":162, "y":38 }, + { "matrix":[3, 14], "flags":4, "x":188, "y":38 }, + { "matrix":[3, 15], "flags":4, "x":200, "y":38 }, + { "matrix":[3, 16], "flags":4, "x":212, "y":38 }, + { "matrix":[3, 17], "flags":4, "x":224, "y":55 }, + + { "matrix":[4, 0], "flags":4, "x":8, "y":49 }, + { "matrix":[4, 2], "flags":4, "x":27, "y":49 }, + { "matrix":[4, 3], "flags":4, "x":39, "y":49 }, + { "matrix":[4, 4], "flags":4, "x":51, "y":49 }, + { "matrix":[4, 5], "flags":4, "x":64, "y":49 }, + { "matrix":[4, 6], "flags":4, "x":76, "y":49 }, + { "matrix":[4, 7], "flags":4, "x":88, "y":49 }, + { "matrix":[4, 8], "flags":4, "x":100, "y":49 }, + { "matrix":[4, 9], "flags":4, "x":112, "y":49 }, + { "matrix":[4, 10], "flags":4, "x":124, "y":49 }, + { "matrix":[4, 11], "flags":4, "x":136, "y":49 }, + { "matrix":[4, 13], "flags":4, "x":153, "y":49 }, + { "matrix":[4, 14], "flags":4, "x":188, "y":49 }, + { "matrix":[4, 15], "flags":4, "x":200, "y":49 }, + { "matrix":[4, 16], "flags":4, "x":212, "y":49 }, + { "matrix":[4, 17], "flags":4, "x":212, "y":61 }, + + { "matrix":[5, 0], "flags":4, "x":2, "y":61 }, + { "matrix":[5, 1], "flags":4, "x":17, "y":61 }, + { "matrix":[5, 2], "flags":4, "x":32, "y":61 }, + { "matrix":[5, 6], "flags":4, "x":77, "y":61 }, + { "matrix":[5, 10], "flags":4, "x":121, "y":61 }, + { "matrix":[5, 11], "flags":4, "x":133, "y":61 }, + { "matrix":[5, 12], "flags":4, "x":145, "y":61 }, + { "matrix":[5, 13], "flags":4, "x":173, "y":52 }, + { "matrix":[5, 14], "flags":4, "x":160, "y":64 }, + { "matrix":[5, 15], "flags":4, "x":173, "y":64 }, + { "matrix":[5, 16], "flags":4, "x":185, "y":64 }, + { "matrix":[5, 17], "flags":4, "x":200, "y":61 } + ] + }, + "layouts": { + "LAYOUT_default": { + "layout": [ + {"label":"Esc", "x":0, "y":0, "matrix":[0,0]}, + {"label":"F1", "x":2, "y":0, "matrix":[0,1]}, + {"label":"F2", "x":3, "y":0, "matrix":[0,2]}, + {"label":"F3", "x":4, "y":0, "matrix":[0,3]}, + {"label":"F4", "x":5, "y":0, "matrix":[0,4]}, + {"label":"F5", "x":6.5, "y":0, "matrix":[0,5]}, + {"label":"F6", "x":7.5, "y":0, "matrix":[0,6]}, + {"label":"F7", "x":8.5, "y":0, "matrix":[0,7]}, + {"label":"F8", "x":9.5, "y":0, "matrix":[0,8]}, + {"label":"F9", "x":11, "y":0, "matrix":[0,9]}, + {"label":"F10", "x":12, "y":0, "matrix":[0,10]}, + {"label":"F11", "x":13, "y":0, "matrix":[0,11]}, + {"label":"F12", "x":14, "y":0, "matrix":[0,12]}, + {"label":"Delete", "x":15.5, "y":0, "matrix":[0,14]}, + {"label":"Insert", "x":16.5, "y":0, "matrix":[0,15]}, + {"label":"Page Up", "x":17.5, "y":0, "matrix":[0,16]}, + {"label":"Page Down", "x":18.5, "y":0, "matrix":[0,17]}, + {"label":"`", "x":0, "y":1.5, "matrix":[1,0]}, + {"label":"1", "x":1, "y":1.5, "matrix":[1,1]}, + {"label":"2", "x":2, "y":1.5, "matrix":[1,2]}, + {"label":"3", "x":3, "y":1.5, "matrix":[1,3]}, + {"label":"4", "x":4, "y":1.5, "matrix":[1,4]}, + {"label":"5", "x":5, "y":1.5, "matrix":[1,5]}, + {"label":"6", "x":6, "y":1.5, "matrix":[1,6]}, + {"label":"7", "x":7, "y":1.5, "matrix":[1,7]}, + {"label":"8", "x":8, "y":1.5, "matrix":[1,8]}, + {"label":"9", "x":9, "y":1.5, "matrix":[1,9]}, + {"label":"0", "x":10, "y":1.5, "matrix":[1,10]}, + {"label":"-", "x":11, "y":1.5, "matrix":[1,11]}, + {"label":"=", "x":12, "y":1.5, "matrix":[1,12]}, + {"label":"Backspace", "x":13, "y":1.5, "w":2, "matrix":[1,13]}, + {"label":"Num Lock", "x":15.5, "y":1.5, "matrix":[1,14]}, + {"label":"/", "x":16.5, "y":1.5, "matrix":[1,15]}, + {"label":"*", "x":17.5, "y":1.5, "matrix":[1,16]}, + {"label":"-", "x":18.5, "y":1.5, "matrix":[1,17]}, + {"label":"Tab", "x":0, "y":2.5, "w":1.5, "matrix":[2,0]}, + {"label":"Q", "x":1.5, "y":2.5, "matrix":[2,1]}, + {"label":"W", "x":2.5, "y":2.5, "matrix":[2,2]}, + {"label":"E", "x":3.5, "y":2.5, "matrix":[2,3]}, + {"label":"R", "x":4.5, "y":2.5, "matrix":[2,4]}, + {"label":"T", "x":5.5, "y":2.5, "matrix":[2,5]}, + {"label":"Y", "x":6.5, "y":2.5, "matrix":[2,6]}, + {"label":"U", "x":7.5, "y":2.5, "matrix":[2,7]}, + {"label":"I", "x":8.5, "y":2.5, "matrix":[2,8]}, + {"label":"O", "x":9.5, "y":2.5, "matrix":[2,9]}, + {"label":"P", "x":10.5, "y":2.5, "matrix":[2,10]}, + {"label":"[", "x":11.5, "y":2.5, "matrix":[2,11]}, + {"label":"]", "x":12.5, "y":2.5, "matrix":[2,12]}, + {"label":"\\", "x":13.5, "y":2.5, "w":1.5, "matrix":[2,13]}, + {"label":"7", "x":15.5, "y":2.5, "matrix":[2,14]}, + {"label":"8", "x":16.5, "y":2.5, "matrix":[2,15]}, + {"label":"9", "x":17.5, "y":2.5, "matrix":[2,16]}, + {"label":"+", "x":18.5, "y":2.5, "h":2, "matrix":[2,17]}, + {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75, "matrix":[3,0]}, + {"label":"A", "x":1.75, "y":3.5, "matrix":[3,1]}, + {"label":"S", "x":2.75, "y":3.5, "matrix":[3,2]}, + {"label":"D", "x":3.75, "y":3.5, "matrix":[3,3]}, + {"label":"F", "x":4.75, "y":3.5, "matrix":[3,4]}, + {"label":"G", "x":5.75, "y":3.5, "matrix":[3,5]}, + {"label":"H", "x":6.75, "y":3.5, "matrix":[3,6]}, + {"label":"J", "x":7.75, "y":3.5, "matrix":[3,7]}, + {"label":"K", "x":8.75, "y":3.5, "matrix":[3,8]}, + {"label":"L", "x":9.75, "y":3.5, "matrix":[3,9]}, + {"label":";", "x":10.75, "y":3.5, "matrix":[3,10]}, + {"label":"'", "x":11.75, "y":3.5, "matrix":[3,11]}, + {"label":"Enter", "x":12.75, "y":3.5, "w":2.25, "matrix":[3,13]}, + {"label":"4", "x":15.5, "y":3.5, "matrix":[3,14]}, + {"label":"5", "x":16.5, "y":3.5, "matrix":[3,15]}, + {"label":"6", "x":17.5, "y":3.5, "matrix":[3,16]}, + {"label":"Enter", "x":18.5, "y":4.5, "h":2, "matrix":[3,17]}, + {"label":"Shift", "x":0, "y":4.5, "w":2.25, "matrix":[4,0]}, + {"label":"Z", "x":2.25, "y":4.5, "matrix":[4,2]}, + {"label":"X", "x":3.25, "y":4.5, "matrix":[4,3]}, + {"label":"C", "x":4.25, "y":4.5, "matrix":[4,4]}, + {"label":"V", "x":5.25, "y":4.5, "matrix":[4,5]}, + {"label":"B", "x":6.25, "y":4.5, "matrix":[4,6]}, + {"label":"N", "x":7.25, "y":4.5, "matrix":[4,7]}, + {"label":"M", "x":8.25, "y":4.5, "matrix":[4,8]}, + {"label":",", "x":9.25, "y":4.5, "matrix":[4,9]}, + {"label":".", "x":10.25, "y":4.5, "matrix":[4,10]}, + {"label":"/", "x":11.25, "y":4.5, "matrix":[4,11]}, + {"label":"Shift", "x":12.25, "y":4.5, "w":1.75, "matrix":[4,13]}, + {"label":"1", "x":15.5, "y":4.5, "matrix":[4,14]}, + {"label":"2", "x":16.5, "y":4.5, "matrix":[4,15]}, + {"label":"3", "x":17.5, "y":4.5, "matrix":[4,16]}, + {"label":".", "x":17.5, "y":5.5, "matrix":[4,17]}, + {"label":"Ctrl", "x":0, "y":5.5, "w":1.25, "matrix":[5,0]}, + {"label":"Win", "x":1.25, "y":5.5, "matrix":[5,1]}, + {"label":"Alt", "x":2.25, "y":5.5, "w":1.25, "matrix":[5,2]}, + {"label":"Space", "x":3.5, "y":5.5, "w":6, "matrix":[5,6]}, + {"label":"Alt", "x":9.5, "y":5.5, "w":1.25, "matrix":[5,10]}, + {"label":"Fn", "x":11.75, "y":5.5, "w":1.25, "matrix":[5,11]}, + {"label":"Ctrl", "x":10.75, "y":5.5, "matrix":[5,12]}, + {"label":"Up", "x":14.25, "y":4.75, "matrix":[5,13]}, + {"label":"Left", "x":13.25, "y":5.75, "matrix":[5,14]}, + {"label":"Down", "x":14.25, "y":5.75, "matrix":[5,15]}, + {"label":"Right", "x":15.25, "y":5.75, "matrix":[5,16]}, + {"label":"0", "x":16.5, "y":5.5, "matrix":[5,17]} + ] + } + } + +} diff --git a/keyboards/flesports/fl980/keymaps/custom/config.h b/keyboards/flesports/fl980/keymaps/custom/config.h new file mode 100644 index 000000000000..cc59f644b847 --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/custom/config.h @@ -0,0 +1,21 @@ +/* Copyright (C) 2023 Alexey Zagorodnikov + * + * 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 . + */ + +#pragma once + +// Enable RGB Matrix +#define VIA_QMK_RGBLIGHT_ENABLE +#define DYNAMIC_KEYMAP_LAYER_COUNT 2 diff --git a/keyboards/flesports/fl980/keymaps/custom/keymap.c b/keyboards/flesports/fl980/keymaps/custom/keymap.c new file mode 100644 index 000000000000..0e32e4923a23 --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/custom/keymap.c @@ -0,0 +1,44 @@ +/* +Copyright 2021 Alexey Zagorodnikov + +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 . +*/ +#include QMK_KEYBOARD_H +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. + +tap_dance_action_t tap_dance_actions[] = { + [0] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_PGUP), + [1] = ACTION_TAP_DANCE_DOUBLE(KC_END, KC_PGDN), +}; + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_default( 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, TD(0), TD(1), KC_INS, KC_PSCR, + 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_BSPC, KC_DEL, 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_BSLS, KC_P7, KC_P8, KC_P9, KC_PPLS, + 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_PENT, + 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_P1, KC_P2, KC_P3, KC_PDOT, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_UP, KC_LEFT, KC_DOWN, KC_RIGHT, KC_P0 + ), + [1] = LAYOUT_default( QK_BOOT, KC_BRID, KC_BRIU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_MPLY, KC_MPLY, KC_VOLD, KC_VOLU, KC_PGUP, KC_PGDN, KC_TRNS, KC_TRNS, + QK_RBT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPD, RGB_SPI, KC_TRNS, KC_NUM, KC_TRNS, KC_TRNS, EE_CLR, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SCRL, KC_PAUS, 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, RGB_M_SW, 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, RGB_M_P, RGB_M_B, RGB_M_R, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_RMOD, KC_TRNS, RGB_MOD, RGB_VAI, RGB_HUD, RGB_VAD, RGB_HUI, KC_TRNS + ), +}; diff --git a/keyboards/flesports/fl980/keymaps/custom/rules.mk b/keyboards/flesports/fl980/keymaps/custom/rules.mk new file mode 100644 index 000000000000..abcb62d52dbc --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/custom/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +TAP_DANCE_ENABLE = yes \ No newline at end of file diff --git a/keyboards/flesports/fl980/keymaps/default/keymap.c b/keyboards/flesports/fl980/keymaps/default/keymap.c new file mode 100644 index 000000000000..7a9c339ab18e --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/default/keymap.c @@ -0,0 +1,41 @@ +/* +Copyright 2021 Alexey Zagorodnikov + +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 . +*/ +#include QMK_KEYBOARD_H + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_default( 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_PGUP, KC_PGDN, + 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_BSPC, KC_NUM, 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_BSLS, KC_P7, KC_P8, KC_P9, KC_PPLS, + 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_PENT, + 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_P1, KC_P2, KC_P3, KC_PDOT, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_UP, KC_LEFT, KC_DOWN, KC_RIGHT, KC_P0 + ), + [1] = LAYOUT_default( QK_BOOT, KC_BRID, KC_BRIU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_HOME, KC_END, + QK_RBT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPD, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, EE_CLR, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SCRL, KC_PAUS, 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, RGB_M_SW, 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, RGB_M_P, RGB_M_B, RGB_M_R, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_RMOD, KC_TRNS, RGB_MOD, RGB_VAI, RGB_HUD, RGB_VAD, RGB_HUI, KC_TRNS + ), +}; + diff --git a/keyboards/flesports/fl980/keymaps/via/config.h b/keyboards/flesports/fl980/keymaps/via/config.h new file mode 100644 index 000000000000..cc59f644b847 --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/via/config.h @@ -0,0 +1,21 @@ +/* Copyright (C) 2023 Alexey Zagorodnikov + * + * 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 . + */ + +#pragma once + +// Enable RGB Matrix +#define VIA_QMK_RGBLIGHT_ENABLE +#define DYNAMIC_KEYMAP_LAYER_COUNT 2 diff --git a/keyboards/flesports/fl980/keymaps/via/fl980_via.json b/keyboards/flesports/fl980/keymaps/via/fl980_via.json new file mode 100644 index 000000000000..88a7aec05553 --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/via/fl980_via.json @@ -0,0 +1,236 @@ +{ + "name": "FL980", + "vendorId": "0x0C45", + "productId": "0x5004", + "menus": ["qmk_rgb_matrix"], + "matrix": {"rows": 6, "cols": 18}, + "layouts": { + "keymap": [ + [ + { + "c": "#781f1f", + "t": "#ffffff" + }, + "0,0", + { + "x": 1, + "c": "#505050" + }, + "0,1", + "0,2", + "0,3", + "0,4", + { + "x": 0.5, + "c": "#202020" + }, + "0,5", + "0,6", + "0,7", + "0,8", + { + "x": 0.5, + "c": "#505050" + }, + "0,9", + "0,10", + "0,11", + "0,12", + { + "x": 0.5, + "c": "#202020" + }, + "0,14", + "0,15", + "0,16", + "0,17" + ], + [ + { + "y": 0.25, + "c": "#505050" + }, + "1,0", + "1,1", + "1,2", + "1,3", + "1,4", + "1,5", + "1,6", + "1,7", + "1,8", + "1,9", + "1,10", + "1,11", + "1,12", + { + "c": "#202020", + "w": 2 + }, + "1,13", + { + "x": 0.5 + }, + "1,14", + "1,15", + "1,16", + "1,17" + ], + [ + { + "w": 1.5 + }, + "2,0", + { + "c": "#505050" + }, + "2,1", + "2,2", + "2,3", + "2,4", + "2,5", + "2,6", + "2,7", + "2,8", + "2,9", + "2,10", + "2,11", + "2,12", + { + "w": 1.5 + }, + "2,13", + { + "x": 0.5 + }, + "2,14", + "2,15", + "2,16", + { + "c": "#202020", + "h": 2 + }, + "2,17" + ], + [ + { + "w": 1.75 + }, + "3,0", + { + "c": "#505050" + }, + "3,1", + "3,2", + "3,3", + "3,4", + "3,5", + "3,6", + "3,7", + "3,8", + "3,9", + "3,10", + "3,11", + { + "c": "#781f1f", + "w": 2.25 + }, + "3,13", + { + "x": 0.5, + "c": "#505050" + }, + "3,14", + "3,15", + "3,16" + ], + [ + { + "c": "#202020", + "w": 2.25 + }, + "4,0", + { + "c": "#505050" + }, + "4,2", + "4,3", + "4,4", + "4,5", + "4,6", + "4,7", + "4,8", + "4,9", + "4,10", + "4,11", + { + "c": "#202020", + "w": 1.75 + }, + "4,13", + { + "x": 1.5, + "c": "#505050" + }, + "4,14", + "4,15", + "4,16", + { + "c": "#781f1f", + "h": 2 + }, + "3,17" + ], + [ + { + "y": -0.75, + "x": 14.25, + "c": "#202020" + }, + "5,13" + ], + [ + { + "y": -0.25, + "w": 1.25 + }, + "5,0", + { + "w": 1.25 + }, + "5,1", + { + "w": 1.25 + }, + "5,2", + { + "c": "#505050", + "w": 6.25 + }, + "5,6", + { + "c": "#202020" + }, + "5,10", + "5,11", + "5,12", + { + "x": 3.5, + "c": "#505050" + }, + "5,17", + "4,17" + ], + [ + { + "y": -0.75, + "x": 13.25, + "c": "#202020" + }, + "5,14", + "5,15", + "5,16" + ] + ] + } +} diff --git a/keyboards/flesports/fl980/keymaps/via/keymap.c b/keyboards/flesports/fl980/keymaps/via/keymap.c new file mode 100644 index 000000000000..76931358eee2 --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/via/keymap.c @@ -0,0 +1,39 @@ +/* +Copyright 2021 Alexey Zagorodnikov + +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 . +*/ +#include QMK_KEYBOARD_H + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_default( 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_PGUP, KC_PGDN, + 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_BSPC, KC_NUM, 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_BSLS, KC_P7, KC_P8, KC_P9, KC_PPLS, + 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_PENT, + 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_P1, KC_P2, KC_P3, KC_PDOT, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_UP, KC_LEFT, KC_DOWN, KC_RIGHT, KC_P0 + ), + [1] = LAYOUT_default( QK_BOOT, KC_BRID, KC_BRIU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_HOME, KC_END, + QK_RBT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPD, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, EE_CLR, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SCRL, KC_PAUS, 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, RGB_M_SW, 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, RGB_M_P, RGB_M_B, RGB_M_R, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_RMOD, KC_TRNS, RGB_MOD, RGB_VAI, RGB_HUD, RGB_VAD, RGB_HUI, KC_TRNS + ), +}; diff --git a/keyboards/flesports/fl980/keymaps/via/rules.mk b/keyboards/flesports/fl980/keymaps/via/rules.mk new file mode 100644 index 000000000000..1e5b99807cb7 --- /dev/null +++ b/keyboards/flesports/fl980/keymaps/via/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes diff --git a/keyboards/flesports/fl980/readme.md b/keyboards/flesports/fl980/readme.md new file mode 100644 index 000000000000..a053c6b4d1be --- /dev/null +++ b/keyboards/flesports/fl980/readme.md @@ -0,0 +1,16 @@ +# FL-Esports FL980 + +FL980 + +Keyboard Maintainer: [Alexey Zagorodnikov](https://github.com/iglooom/) +Based on Redragon K556 by: [Adam Honse](https://github.com/CalcProgrammer1) +Hardware Supported: SN32F248BF + +For some reason, I can't use the default RGB matrix driver for this keyboard. Tried different options without luck, LEDs always had some glow and incorrect colors, even when should be completely off. +I used the custom driver with PWM on rows instead columns, but for smooth RGB, reading keys performed only twice inside RGB cycle. Good enough for me. + +Make example for this keyboard (after setting up your build environment): + + make flesports/fl980:default + +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/flesports/fl980/rules.mk b/keyboards/flesports/fl980/rules.mk new file mode 100644 index 000000000000..4fcea497f8e8 --- /dev/null +++ b/keyboards/flesports/fl980/rules.mk @@ -0,0 +1,2 @@ +EEPROM_DRIVER = wear_leveling +WEAR_LEVELING_DRIVER = sn32_flash \ No newline at end of file