Skip to content

Commit

Permalink
[FL-Esports FL980] Add FL-Esports FL980 to sn32_develop (qmk#303)
Browse files Browse the repository at this point in the history
* [Keyboard] Add FL-Esports FL980

* update license headers
  • Loading branch information
iglooom authored Feb 25, 2023
1 parent 1dcc510 commit 59c1040
Show file tree
Hide file tree
Showing 13 changed files with 777 additions and 0 deletions.
86 changes: 86 additions & 0 deletions keyboards/flesports/fl980/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/* Copyright (C) 2023 Alexey Zagorodnikov <[email protected]>
*
* 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"

#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
20 changes: 20 additions & 0 deletions keyboards/flesports/fl980/fl980.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Copyright (C) 2023 Alexey Zagorodnikov <[email protected]>
*
* 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"

248 changes: 248 additions & 0 deletions keyboards/flesports/fl980/info.json
Original file line number Diff line number Diff line change
@@ -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]}
]
}
}

}
21 changes: 21 additions & 0 deletions keyboards/flesports/fl980/keymaps/custom/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Copyright (C) 2023 Alexey Zagorodnikov <[email protected]>
*
* 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

// Enable RGB Matrix
#define VIA_QMK_RGBLIGHT_ENABLE
#define DYNAMIC_KEYMAP_LAYER_COUNT 2
Loading

0 comments on commit 59c1040

Please sign in to comment.