This commit is contained in:
JIKEDINGZHI 2025-07-16 10:20:33 -07:00 committed by GitHub
commit 748a4ebec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 597 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// Copyright 2023 linlin012 (@linlin012)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define AW20216S_EN_PIN B5
#define AW20216S_CS_PIN_1 B12
#define CAPS_LOCK_INDEX 30

View File

@ -0,0 +1,7 @@
// Copyright 2023 linlin012 (@linlin012)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define HAL_USE_SPI TRUE
#include_next <halconf.h>

View File

@ -0,0 +1,381 @@
{
"manufacturer": "skyloong",
"keyboard_name": "qmk68 pro",
"maintainer": "NaturalZh",
"bootloader": "stm32duino",
"debounce": 10,
"diode_direction": "ROW2COL",
"encoder": {
"rotary": [
{"pin_a": "A1", "pin_b": "A0", "resolution": 2},
{"pin_a": "B1", "pin_b": "B0", "resolution": 2}
]
},
"features": {
"bootmagic": true,
"command": true,
"console": false,
"encoder": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"build": {
"debounce_type": "asym_eager_defer_pk"
},
"matrix_pins": {
"cols": ["A7", "A8", "A9", "A10", "A15", "B3", "B4", "B6", "B7", "B8", "B9", "B10", "C13", "C14","C15"],
"rows": ["A2", "A3", "A4", "A5", "A6"]
},
"processor": "STM32F103",
"rgb_matrix": {
"animations": {
"breathing": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"rainbow_moving_chevron": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"raindrops": true,
"jellybean_raindrops": true,
"pixel_rain": true,
"typing_heatmap":true,
"digital_rain": true,
"solid_reactive_simple": true,
"solid_reactive_multiwide": true,
"solid_reactive_multinexus": true,
"splash": true,
"solid_splash": true
},
"driver": "aw20216s",
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
{"matrix": [0, 1], "x": 15, "y": 0, "flags": 4},
{"matrix": [0, 2], "x": 30, "y": 0, "flags": 4},
{"matrix": [0, 3], "x": 45, "y": 0, "flags": 4},
{"matrix": [0, 4], "x": 60, "y": 0, "flags": 4},
{"matrix": [0, 5], "x": 75, "y": 0, "flags": 4},
{"matrix": [0, 6], "x": 89, "y": 0, "flags": 4},
{"matrix": [0, 7], "x": 104, "y": 0, "flags": 4},
{"matrix": [0, 8], "x": 119, "y": 0, "flags": 4},
{"matrix": [0, 9], "x": 134, "y": 0, "flags": 4},
{"matrix": [0, 10], "x": 149, "y": 0, "flags": 4},
{"matrix": [0, 11], "x": 164, "y": 0, "flags": 4},
{"matrix": [0, 12], "x": 179, "y": 0, "flags": 4},
{"matrix": [0, 13], "x": 201, "y": 0, "flags": 4},
{"matrix": [0, 14], "x": 224, "y": 0, "flags": 4},
{"matrix": [1, 0], "x": 4, "y": 13, "flags": 4},
{"matrix": [1, 1], "x": 19, "y": 13, "flags": 4},
{"matrix": [1, 2], "x": 34, "y": 13, "flags": 4},
{"matrix": [1, 3], "x": 48, "y": 13, "flags": 4},
{"matrix": [1, 4], "x": 63, "y": 13, "flags": 4},
{"matrix": [1, 5], "x": 78, "y": 13, "flags": 4},
{"matrix": [1, 6], "x": 93, "y": 13, "flags": 4},
{"matrix": [1, 7], "x": 108, "y": 13, "flags": 4},
{"matrix": [1, 8], "x": 123, "y": 13, "flags": 4},
{"matrix": [1, 9], "x": 138, "y": 13, "flags": 4},
{"matrix": [1, 10], "x": 153, "y": 13, "flags": 4},
{"matrix": [1, 11], "x": 168, "y": 13, "flags": 4},
{"matrix": [1, 12], "x": 183, "y": 13, "flags": 4},
{"matrix": [1, 13], "x": 205, "y": 13, "flags": 4},
{"matrix": [1, 14], "x": 224, "y": 13, "flags": 4},
{"matrix": [2, 0], "x": 5, "y": 26, "flags": 4},
{"matrix": [2, 1], "x": 26, "y": 26, "flags": 4},
{"matrix": [2, 2], "x": 41, "y": 26, "flags": 4},
{"matrix": [2, 3], "x": 56, "y": 26, "flags": 4},
{"matrix": [2, 4], "x": 71, "y": 26, "flags": 4},
{"matrix": [2, 5], "x": 86, "y": 26, "flags": 4},
{"matrix": [2, 6], "x": 101, "y": 26, "flags": 4},
{"matrix": [2, 7], "x": 115, "y": 26, "flags": 4},
{"matrix": [2, 8], "x": 130, "y": 26, "flags": 4},
{"matrix": [2, 9], "x": 145, "y": 26, "flags": 4},
{"matrix": [2, 10], "x": 160, "y": 26, "flags": 4},
{"matrix": [2, 11], "x": 175, "y": 26, "flags": 4},
{"matrix": [2, 12], "x": 200, "y": 26, "flags": 4},
{"matrix": [2, 14], "x": 224, "y": 26, "flags": 4},
{"matrix": [3, 0], "x": 9, "y": 51, "flags": 4},
{"matrix": [3, 1], "x": 34, "y": 51, "flags": 4},
{"matrix": [3, 2], "x": 48, "y": 51, "flags": 4},
{"matrix": [3, 3], "x": 63, "y": 51, "flags": 4},
{"matrix": [3, 4], "x": 78, "y": 51, "flags": 4},
{"matrix": [3, 5], "x": 93, "y": 51, "flags": 4},
{"matrix": [3, 6], "x": 108, "y": 51, "flags": 4},
{"matrix": [3, 7], "x": 123, "y": 51, "flags": 4},
{"matrix": [3, 8], "x": 138, "y": 51, "flags": 4},
{"matrix": [3, 9], "x": 153, "y": 51, "flags": 4},
{"matrix": [3, 10], "x": 168, "y": 51, "flags": 4},
{"matrix": [3, 11], "x": 188, "y": 51, "flags": 4},
{"matrix": [3, 12], "x": 209, "y": 51, "flags": 4},
{"matrix": [3, 14], "x": 224, "y": 51, "flags": 4},
{"matrix": [4, 0], "x": 2, "y": 64, "flags": 4},
{"matrix": [4, 1], "x": 20, "y": 64, "flags": 4},
{"matrix": [4, 2], "x": 39, "y": 64, "flags": 4},
{"matrix": [4, 4], "x": 72, "y": 64, "flags": 4},
{"matrix": [4, 5], "x": 95, "y": 64, "flags": 4},
{"matrix": [4, 7], "x": 118, "y": 64, "flags": 4},
{"matrix": [4, 8], "x": 149, "y": 64, "flags": 4},
{"matrix": [4, 9], "x": 164, "y": 64, "flags": 4},
{"matrix": [4, 10], "x": 179, "y": 64, "flags": 4},
{"matrix": [4, 11], "x": 194, "y": 64, "flags": 4},
{"matrix": [4, 12], "x": 209, "y": 64, "flags": 4},
{"matrix": [4, 14], "x": 224, "y": 64, "flags": 4}
],
"max_brightness": 200,
"hue_steps": 20,
"sat_steps": 20,
"speed_steps": 20,
"val_steps": 20,
"sleep": true
},
"url": "https://github.com/JZ-Skyloong",
"usb": {
"device_version": "1.0.0",
"pid": "0x6068",
"vid": "0x1EA7",
"max_power": 380
},
"community_layouts": ["65_ansi"],
"layouts": {
"LAYOUT_all": {
"layout": [
{"label":"ESC","matrix": [0, 0], "x": 0, "y": 0, "w": 1},
{"label":"1","matrix": [0, 1], "x": 1, "y": 0},
{"label":"2","matrix": [0, 2], "x": 2, "y": 0},
{"label":"3","matrix": [0, 3], "x": 3, "y": 0},
{"label":"4","matrix": [0, 4], "x": 4, "y": 0},
{"label":"5","matrix": [0, 5], "x": 5, "y": 0},
{"label":"6","matrix": [0, 6], "x": 6, "y": 0},
{"label":"7","matrix": [0, 7], "x": 7, "y": 0},
{"label":"8","matrix": [0, 8], "x": 8, "y": 0},
{"label":"9","matrix": [0, 9], "x": 9, "y": 0},
{"label":"0","matrix": [0, 10], "x": 10, "y": 0},
{"label":"-_","matrix": [0, 11], "x": 11, "y": 0},
{"label":"=+","matrix": [0, 12], "x": 12, "y": 0},
{"label":"BS","matrix": [0, 13], "x": 13, "y": 0, "w": 2},
{"label":"Ins","matrix": [0, 14], "x": 15, "y": 0},
{"label":"Tab","matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
{"label":"Q","matrix": [1, 1], "x": 1.5, "y": 1},
{"label":"W","matrix": [1, 2], "x": 2.5, "y": 1},
{"label":"E","matrix": [1, 3], "x": 3.5, "y": 1},
{"label":"R","matrix": [1, 4], "x": 4.5, "y": 1},
{"label":"T","matrix": [1, 5], "x": 5.5, "y": 1},
{"label":"Y","matrix": [1, 6], "x": 6.5, "y": 1},
{"label":"U","matrix": [1, 7], "x": 7.5, "y": 1},
{"label":"I","matrix": [1, 8], "x": 8.5, "y": 1},
{"label":"O","matrix": [1, 9], "x": 9.5, "y": 1},
{"label":"P","matrix": [1, 10], "x": 10.5, "y": 1},
{"label":"[{","matrix": [1, 11], "x": 11.5, "y": 1},
{"label":"]}","matrix": [1, 12], "x": 12.5, "y": 1},
{"label":"|","matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
{"label":"Del","matrix": [1, 14], "x": 15, "y": 1},
{"label":"Caps","matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
{"label":"A","matrix": [2, 1], "x": 1.75, "y": 2},
{"label":"S","matrix": [2, 2], "x": 2.75, "y": 2},
{"label":"D","matrix": [2, 3], "x": 3.75, "y": 2},
{"label":"F","matrix": [2, 4], "x": 4.75, "y": 2},
{"label":"G","matrix": [2, 5], "x": 5.75, "y": 2},
{"label":"H","matrix": [2, 6], "x": 6.75, "y": 2},
{"label":"J","matrix": [2, 7], "x": 7.75, "y": 2},
{"label":"K","matrix": [2, 8], "x": 8.75, "y": 2},
{"label":"L","matrix": [2, 9], "x": 9.75, "y": 2},
{"label":";","matrix": [2, 10], "x": 10.75, "y": 2},
{"label":"'","matrix": [2, 11], "x": 11.75, "y": 2},
{"label":"Ent","matrix": [2, 12], "x": 12.75, "y": 2, "w": 2.25},
{"label":"PGUP","matrix": [2, 14], "x": 15, "y": 2},
{"label":"Shift_L","matrix": [3, 0], "x": 0, "y": 3, "w": 2.25},
{"label":"Z","matrix": [3, 1], "x": 2.25, "y": 3},
{"label":"X","matrix": [3, 2], "x": 3.25, "y": 3},
{"label":"C","matrix": [3, 3], "x": 4.25, "y": 3},
{"label":"V","matrix": [3, 4], "x": 5.25, "y": 3},
{"label":"B","matrix": [3, 5], "x": 6.25, "y": 3},
{"label":"N","matrix": [3, 6], "x": 7.25, "y": 3},
{"label":"M","matrix": [3, 7], "x": 8.25, "y": 3},
{"label":",","matrix": [3, 8], "x": 9.25, "y": 3},
{"label":".","matrix": [3, 9], "x": 10.25, "y": 3},
{"label":"/","matrix": [3, 10], "x": 11.25, "y": 3},
{"label":"Shift_R","matrix": [3, 11], "x": 12.25, "y": 3, "w": 1.75},
{"label":"Up","matrix": [3, 12], "x": 14, "y": 3},
{"label":"PGDN","matrix": [3, 14], "x": 15, "y": 3},
{"label":"Ctrl_L","matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
{"label":"Win_L","matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25},
{"label":"Alt_L","matrix": [4, 2], "x": 2.5, "y": 4, "w": 1.25},
{"label":"Space/M1","matrix": [4, 4], "x": 3.75, "y": 4.5, "w": 3.125, "h": 0.5},
{"label":"Space","matrix": [4, 5], "x": 3.75, "y": 4, "h": 0.5, "w":6.25},
{"label":"Space/M3","matrix": [4, 7], "x": 6.875, "y": 4.5, "h": 0.5, "w":3.125},
{"label":"Alt_R","matrix": [4, 8], "x": 10, "y": 4},
{"label":"Fn","matrix": [4, 9], "x": 11, "y": 4},
{"label":"Menu","matrix": [4, 10], "x": 12, "y": 4},
{"label":"Left","matrix": [4, 11], "x": 13, "y": 4},
{"label":"Down","matrix": [4, 12], "x": 14, "y": 4},
{"label":"Right","matrix": [4, 14], "x": 15, "y": 4}
]
},
"LAYOUT_65_ansi": {
"layout": [
{"label":"ESC","matrix": [0, 0], "x": 0, "y": 0, "w": 1},
{"label":"1","matrix": [0, 1], "x": 1, "y": 0},
{"label":"2","matrix": [0, 2], "x": 2, "y": 0},
{"label":"3","matrix": [0, 3], "x": 3, "y": 0},
{"label":"4","matrix": [0, 4], "x": 4, "y": 0},
{"label":"5","matrix": [0, 5], "x": 5, "y": 0},
{"label":"6","matrix": [0, 6], "x": 6, "y": 0},
{"label":"7","matrix": [0, 7], "x": 7, "y": 0},
{"label":"8","matrix": [0, 8], "x": 8, "y": 0},
{"label":"9","matrix": [0, 9], "x": 9, "y": 0},
{"label":"0","matrix": [0, 10], "x": 10, "y": 0},
{"label":"-_","matrix": [0, 11], "x": 11, "y": 0},
{"label":"=+","matrix": [0, 12], "x": 12, "y": 0},
{"label":"BS","matrix": [0, 13], "x": 13, "y": 0, "w": 2},
{"label":"`~","matrix": [0, 14], "x": 15, "y": 0},
{"label":"Tab","matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
{"label":"Q","matrix": [1, 1], "x": 1.5, "y": 1},
{"label":"W","matrix": [1, 2], "x": 2.5, "y": 1},
{"label":"E","matrix": [1, 3], "x": 3.5, "y": 1},
{"label":"R","matrix": [1, 4], "x": 4.5, "y": 1},
{"label":"T","matrix": [1, 5], "x": 5.5, "y": 1},
{"label":"Y","matrix": [1, 6], "x": 6.5, "y": 1},
{"label":"U","matrix": [1, 7], "x": 7.5, "y": 1},
{"label":"I","matrix": [1, 8], "x": 8.5, "y": 1},
{"label":"O","matrix": [1, 9], "x": 9.5, "y": 1},
{"label":"P","matrix": [1, 10], "x": 10.5, "y": 1},
{"label":"[{","matrix": [1, 11], "x": 11.5, "y": 1},
{"label":"]}","matrix": [1, 12], "x": 12.5, "y": 1},
{"label":"|","matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
{"label":"Del","matrix": [1, 14], "x": 15, "y": 1},
{"label":"Caps","matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
{"label":"A","matrix": [2, 1], "x": 1.75, "y": 2},
{"label":"S","matrix": [2, 2], "x": 2.75, "y": 2},
{"label":"D","matrix": [2, 3], "x": 3.75, "y": 2},
{"label":"F","matrix": [2, 4], "x": 4.75, "y": 2},
{"label":"G","matrix": [2, 5], "x": 5.75, "y": 2},
{"label":"H","matrix": [2, 6], "x": 6.75, "y": 2},
{"label":"J","matrix": [2, 7], "x": 7.75, "y": 2},
{"label":"K","matrix": [2, 8], "x": 8.75, "y": 2},
{"label":"L","matrix": [2, 9], "x": 9.75, "y": 2},
{"label":";","matrix": [2, 10], "x": 10.75, "y": 2},
{"label":"'","matrix": [2, 11], "x": 11.75, "y": 2},
{"label":"Ent","matrix": [2, 12], "x": 12.75, "y": 2, "w": 2.25},
{"label":"PGUP","matrix": [2, 14], "x": 15, "y": 2},
{"label":"Shift_L","matrix": [3, 0], "x": 0, "y": 3, "w": 2.25},
{"label":"Z","matrix": [3, 1], "x": 2.25, "y": 3},
{"label":"X","matrix": [3, 2], "x": 3.25, "y": 3},
{"label":"C","matrix": [3, 3], "x": 4.25, "y": 3},
{"label":"V","matrix": [3, 4], "x": 5.25, "y": 3},
{"label":"B","matrix": [3, 5], "x": 6.25, "y": 3},
{"label":"N","matrix": [3, 6], "x": 7.25, "y": 3},
{"label":"M","matrix": [3, 7], "x": 8.25, "y": 3},
{"label":",","matrix": [3, 8], "x": 9.25, "y": 3},
{"label":".","matrix": [3, 9], "x": 10.25, "y": 3},
{"label":"/","matrix": [3, 10], "x": 11.25, "y": 3},
{"label":"Shift_R","matrix": [3, 11], "x": 12.25, "y": 3, "w": 1.75},
{"label":"Up","matrix": [3, 12], "x": 14, "y": 3},
{"label":"PGDN","matrix": [3, 14], "x": 15, "y": 3},
{"label":"Ctrl_L","matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
{"label":"Win_L","matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25},
{"label":"Alt_L","matrix": [4, 2], "x": 2.5, "y": 4, "w": 1.25},
{"label":"Space","matrix": [4, 5], "x": 3.75, "y": 4, "w":6.25},
{"label":"Alt_R","matrix": [4, 8], "x": 10, "y": 4},
{"label":"Fn","matrix": [4, 9], "x": 11, "y": 4},
{"label":"Menu","matrix": [4, 10], "x": 12, "y": 4},
{"label":"Left","matrix": [4, 11], "x": 13, "y": 4},
{"label":"Down","matrix": [4, 12], "x": 14, "y": 4},
{"label":"Right","matrix": [4, 14], "x": 15, "y": 4}
]
},
"LAYOUT_65_ansi_split_space": {
"layout": [
{"label":"ESC","matrix": [0, 0], "x": 0, "y": 0, "w": 1},
{"label":"1","matrix": [0, 1], "x": 1, "y": 0},
{"label":"2","matrix": [0, 2], "x": 2, "y": 0},
{"label":"3","matrix": [0, 3], "x": 3, "y": 0},
{"label":"4","matrix": [0, 4], "x": 4, "y": 0},
{"label":"5","matrix": [0, 5], "x": 5, "y": 0},
{"label":"6","matrix": [0, 6], "x": 6, "y": 0},
{"label":"7","matrix": [0, 7], "x": 7, "y": 0},
{"label":"8","matrix": [0, 8], "x": 8, "y": 0},
{"label":"9","matrix": [0, 9], "x": 9, "y": 0},
{"label":"0","matrix": [0, 10], "x": 10, "y": 0},
{"label":"-_","matrix": [0, 11], "x": 11, "y": 0},
{"label":"=+","matrix": [0, 12], "x": 12, "y": 0},
{"label":"BS","matrix": [0, 13], "x": 13, "y": 0, "w": 2},
{"label":"Insert","matrix": [0, 14], "x": 15, "y": 0},
{"label":"Tab","matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
{"label":"Q","matrix": [1, 1], "x": 1.5, "y": 1},
{"label":"W","matrix": [1, 2], "x": 2.5, "y": 1},
{"label":"E","matrix": [1, 3], "x": 3.5, "y": 1},
{"label":"R","matrix": [1, 4], "x": 4.5, "y": 1},
{"label":"T","matrix": [1, 5], "x": 5.5, "y": 1},
{"label":"Y","matrix": [1, 6], "x": 6.5, "y": 1},
{"label":"U","matrix": [1, 7], "x": 7.5, "y": 1},
{"label":"I","matrix": [1, 8], "x": 8.5, "y": 1},
{"label":"O","matrix": [1, 9], "x": 9.5, "y": 1},
{"label":"P","matrix": [1, 10], "x": 10.5, "y": 1},
{"label":"[{","matrix": [1, 11], "x": 11.5, "y": 1},
{"label":"]}","matrix": [1, 12], "x": 12.5, "y": 1},
{"label":"|","matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
{"label":"Del","matrix": [1, 14], "x": 15, "y": 1},
{"label":"Caps","matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
{"label":"A","matrix": [2, 1], "x": 1.75, "y": 2},
{"label":"S","matrix": [2, 2], "x": 2.75, "y": 2},
{"label":"D","matrix": [2, 3], "x": 3.75, "y": 2},
{"label":"F","matrix": [2, 4], "x": 4.75, "y": 2},
{"label":"G","matrix": [2, 5], "x": 5.75, "y": 2},
{"label":"H","matrix": [2, 6], "x": 6.75, "y": 2},
{"label":"J","matrix": [2, 7], "x": 7.75, "y": 2},
{"label":"K","matrix": [2, 8], "x": 8.75, "y": 2},
{"label":"L","matrix": [2, 9], "x": 9.75, "y": 2},
{"label":";","matrix": [2, 10], "x": 10.75, "y": 2},
{"label":"'","matrix": [2, 11], "x": 11.75, "y": 2},
{"label":"Ent","matrix": [2, 12], "x": 12.75, "y": 2, "w": 2.25},
{"label":"PGUP","matrix": [2, 14], "x": 15, "y": 2},
{"label":"Shift_L","matrix": [3, 0], "x": 0, "y": 3, "w": 2.25},
{"label":"Z","matrix": [3, 1], "x": 2.25, "y": 3},
{"label":"X","matrix": [3, 2], "x": 3.25, "y": 3},
{"label":"C","matrix": [3, 3], "x": 4.25, "y": 3},
{"label":"V","matrix": [3, 4], "x": 5.25, "y": 3},
{"label":"B","matrix": [3, 5], "x": 6.25, "y": 3},
{"label":"N","matrix": [3, 6], "x": 7.25, "y": 3},
{"label":"M","matrix": [3, 7], "x": 8.25, "y": 3},
{"label":",","matrix": [3, 8], "x": 9.25, "y": 3},
{"label":".","matrix": [3, 9], "x": 10.25, "y": 3},
{"label":"/","matrix": [3, 10], "x": 11.25, "y": 3},
{"label":"Shift_R","matrix": [3, 11], "x": 12.25, "y": 3, "w": 1.75},
{"label":"Up","matrix": [3, 12], "x": 14, "y": 3},
{"label":"PGDN","matrix": [3, 14], "x": 15, "y": 3},
{"label":"Ctrl_L","matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
{"label":"Win_L","matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25},
{"label":"Alt_L","matrix": [4, 2], "x": 2.5, "y": 4, "w": 1.25},
{"label":"Space/M1","matrix": [4, 4], "x": 3.75, "y": 4, "w": 3.125},
{"label":"Space/M3","matrix": [4, 6], "x": 6.875, "y": 4, "w":3.125},
{"label":"Alt_R","matrix": [4, 8], "x": 10, "y": 4},
{"label":"Fn","matrix": [4, 9], "x": 11, "y": 4},
{"label":"Menu","matrix": [4, 10], "x": 12, "y": 4},
{"label":"Left","matrix": [4, 11], "x": 13, "y": 4},
{"label":"Down","matrix": [4, 12], "x": 14, "y": 4},
{"label":"Right","matrix": [4, 14], "x": 15, "y": 4}
]
}
}
}

View File

@ -0,0 +1,31 @@
// Copyright 2021 JZ-Skyloong (@JZ-Skyloong)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
KC_ESC, 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_INS,
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_DEL,
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_PGUP,
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_PGDN,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_APP, KC_LEFT, KC_DOWN, KC_RIGHT
),
[1] = LAYOUT_all(
KC_GRV, 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_MUTE,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RM_PREV, RM_NEXT, RM_TOGG, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RM_VALU, KC_END,
_______, _______, _______, _______, _______, _______, _______, _______, _______, RM_SPDD, RM_VALD, RM_SPDU
)
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(RM_VALD, RM_VALU)},
[1] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT), ENCODER_CCW_CW(RM_HUED, RM_HUEU)}
};
#endif

View File

@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes

View File

@ -0,0 +1,11 @@
// Copyright 2023 linlin012 (@linlin012)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>
#undef STM32_SPI_USE_SPI2
#define STM32_SPI_USE_SPI2 TRUE
#undef STM32_SPI_USE_DMA
#define STM32_SPI_USE_DMA TRUE

View File

@ -0,0 +1,124 @@
// Copyright 2023 NaturalZh (@NaturalZh)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"
#if defined(RGB_MATRIX_ENABLE) /*&& defined(CAPS_LOCK_INDEX)*/
const aw20216s_led_t PROGMEM g_aw20216s_leds[AW20216S_LED_COUNT] = {
/* Refer to aw20216 manual for these locations
* driver
* | R location
* | | G location
* | | | B location
* | | | | */
{0, SW1_CS1, SW1_CS2, SW1_CS3},
{0, SW2_CS1, SW2_CS2, SW2_CS3},
{0, SW3_CS1, SW3_CS2, SW3_CS3},
{0, SW4_CS1, SW4_CS2, SW4_CS3},
{0, SW5_CS1, SW5_CS2, SW5_CS3},
{0, SW6_CS1, SW6_CS2, SW6_CS3},
{0, SW7_CS1, SW7_CS2, SW7_CS3},
{0, SW8_CS1, SW8_CS2, SW8_CS3},
{0, SW9_CS1, SW9_CS2, SW9_CS3},
{0, SW10_CS1, SW10_CS2, SW10_CS3},
{0, SW11_CS1, SW11_CS2, SW11_CS3},
{0, SW12_CS1, SW12_CS2, SW12_CS3},
{0, SW1_CS18, SW1_CS17, SW1_CS16},
{0, SW2_CS18, SW2_CS17, SW2_CS16},
{0, SW3_CS18, SW3_CS17, SW3_CS16},
{0, SW1_CS4, SW1_CS5, SW1_CS6},
{0, SW2_CS4, SW2_CS5, SW2_CS6},
{0, SW3_CS4, SW3_CS5, SW3_CS6},
{0, SW4_CS4, SW4_CS5, SW4_CS6},
{0, SW5_CS4, SW5_CS5, SW5_CS6},
{0, SW6_CS4, SW6_CS5, SW6_CS6},
{0, SW7_CS4, SW7_CS5, SW7_CS6},
{0, SW8_CS4, SW8_CS5, SW8_CS6},
{0, SW9_CS4, SW9_CS5, SW9_CS6},
{0, SW10_CS4, SW10_CS5, SW10_CS6},
{0, SW11_CS4, SW11_CS5, SW11_CS6},
{0, SW12_CS4, SW12_CS5, SW12_CS6},
{0, SW4_CS18, SW4_CS17, SW4_CS16},
{0, SW5_CS18, SW5_CS17, SW5_CS16},
{0, SW6_CS18, SW6_CS17, SW6_CS16},
{0, SW1_CS7, SW1_CS8, SW1_CS9},
{0, SW2_CS7, SW2_CS8, SW2_CS9},
{0, SW3_CS7, SW3_CS8, SW3_CS9},
{0, SW4_CS7, SW4_CS8, SW4_CS9},
{0, SW5_CS7, SW5_CS8, SW5_CS9},
{0, SW6_CS7, SW6_CS8, SW6_CS9},
{0, SW7_CS7, SW7_CS8, SW7_CS9},
{0, SW8_CS7, SW8_CS8, SW8_CS9},
{0, SW9_CS7, SW9_CS8, SW9_CS9},
{0, SW10_CS7, SW10_CS8, SW10_CS9},
{0, SW11_CS7, SW11_CS8, SW11_CS9},
{0, SW12_CS7, SW12_CS8, SW12_CS9},
{0, SW7_CS18, SW7_CS17, SW7_CS16},
{0, SW8_CS18, SW8_CS17, SW8_CS16},
{0, SW1_CS10, SW1_CS11, SW1_CS12},
{0, SW2_CS10, SW2_CS11, SW2_CS12},
{0, SW3_CS10, SW3_CS11, SW3_CS12},
{0, SW4_CS10, SW4_CS11, SW4_CS12},
{0, SW5_CS10, SW5_CS11, SW5_CS12},
{0, SW6_CS10, SW6_CS11, SW6_CS12},
{0, SW7_CS10, SW7_CS11, SW7_CS12},
{0, SW8_CS10, SW8_CS11, SW8_CS12},
{0, SW9_CS10, SW9_CS11, SW9_CS12},
{0, SW10_CS10, SW10_CS11, SW10_CS12},
{0, SW11_CS10, SW11_CS11, SW11_CS12},
{0, SW12_CS10, SW12_CS11, SW12_CS12},
{0, SW9_CS18, SW9_CS17, SW9_CS16},
{0, SW10_CS18, SW10_CS17, SW10_CS16},
{0, SW1_CS13, SW1_CS14, SW1_CS15},
{0, SW2_CS13, SW2_CS14, SW2_CS15},
{0, SW3_CS13, SW3_CS14, SW3_CS15},
{0, SW5_CS13, SW5_CS14, SW5_CS15},
{0, SW6_CS13, SW6_CS14, SW6_CS15},
{0, SW8_CS13, SW8_CS14, SW8_CS15},
{0, SW9_CS13, SW9_CS14, SW9_CS15},
{0, SW10_CS13, SW10_CS14, SW10_CS15},
{0, SW11_CS13, SW11_CS14, SW11_CS15},
{0, SW12_CS13, SW12_CS14, SW12_CS15},
{0, SW11_CS18, SW11_CS17, SW11_CS16},
{0, SW12_CS18, SW12_CS17, SW12_CS16}
};
bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) {
return false;
}
if (host_keyboard_led_state().caps_lock) {
RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_INDEX, 255, 255, 255);
} else {
if (!rgb_matrix_get_flags()) {
RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_INDEX, 0, 0, 0);
}
}
return true;
}
#endif
void suspend_power_down_kb(void) {
gpio_write_pin_low(AW20216S_EN_PIN);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
gpio_write_pin_high(AW20216S_EN_PIN);
suspend_wakeup_init_user();
}
bool shutdown_kb(bool jump_to_bootloader) {
gpio_write_pin_low(AW20216S_EN_PIN);
return true;
}
void board_init(void) {
// JTAG-DP Disabled and SW-DP Disabled
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk) | AFIO_MAPR_SWJ_CFG_DISABLE;
}

View File

@ -0,0 +1,33 @@
# GK68 PRO
![GK68 PRO](https://i.imgur.com/YAFEoq7.jpg)
## The PCB features:
* QMK & VIA compatibility
* RGB Matrix backlight
* The right-top position switchs(INS and Del) can be interchanged with encoder module.
The following is the QMK Firmware for the Destop 68 key layout - designed in Dongguan Jizhi Electronic Technology Co., Ltd
* Keyboard Maintainer: [NaturalZh](https://github.com/NaturalZh)
* Hardware Supported: DestopPCB for Skyloong keylayout 68%, STM32F103C8T6
* Hardware Availability: http://www.skyloong.com.cn https://skyloongtech.com
Make example for this keyboard (after setting up your build environment):
make skyloong/gk68/pro:default
Flashing example for this keyboard:
make skyloong/gk68/pro: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).
## 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 `QK_BOOT` if it is available