forked from mirrors/qmk_userspace
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b507ea2216 | ||
|
|
3a445969c4 | ||
|
|
d619c03d54 | ||
|
|
3fd4430bf2 | ||
|
|
f1ea73ca8a | ||
|
|
01e743512a | ||
|
|
af62682609 | ||
|
|
02bd229bb9 | ||
|
|
0d0730bc7a | ||
|
|
79dadb3831 |
124 changed files with 8105 additions and 330 deletions
|
|
@ -625,6 +625,7 @@ ifeq ($(strip $(VIA_ENABLE)), yes)
|
||||||
RAW_ENABLE := yes
|
RAW_ENABLE := yes
|
||||||
BOOTMAGIC_ENABLE := yes
|
BOOTMAGIC_ENABLE := yes
|
||||||
TRI_LAYER_ENABLE := yes
|
TRI_LAYER_ENABLE := yes
|
||||||
|
SEND_STRING_ENABLE := yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
VALID_MAGIC_TYPES := yes
|
VALID_MAGIC_TYPES := yes
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,18 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
// ======== DEPRECATED DEFINES - DO NOT USE ========
|
// ======== DEPRECATED DEFINES - DO NOT USE ========
|
||||||
|
#ifdef DRIVER_ADDR_1
|
||||||
|
# define SNLED27351_I2C_ADDRESS_1 DRIVER_ADDR_1
|
||||||
|
#endif
|
||||||
|
#ifdef DRIVER_ADDR_2
|
||||||
|
# define SNLED27351_I2C_ADDRESS_2 DRIVER_ADDR_2
|
||||||
|
#endif
|
||||||
|
#ifdef DRIVER_ADDR_3
|
||||||
|
# define SNLED27351_I2C_ADDRESS_3 DRIVER_ADDR_3
|
||||||
|
#endif
|
||||||
|
#ifdef DRIVER_ADDR_4
|
||||||
|
# define SNLED27351_I2C_ADDRESS_4 DRIVER_ADDR_4
|
||||||
|
#endif
|
||||||
#ifdef CKLED2001_TIMEOUT
|
#ifdef CKLED2001_TIMEOUT
|
||||||
# define SNLED27351_I2C_TIMEOUT CKLED2001_TIMEOUT
|
# define SNLED27351_I2C_TIMEOUT CKLED2001_TIMEOUT
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -333,10 +333,10 @@
|
||||||
"5,16",
|
"5,16",
|
||||||
{
|
{
|
||||||
"x": 0.25,
|
"x": 0.25,
|
||||||
"c": "#cccccc"
|
"c": "#cccccc",
|
||||||
|
"w": 2
|
||||||
},
|
},
|
||||||
"5,17",
|
"5,17",
|
||||||
"5,18",
|
|
||||||
"5,19"
|
"5,19"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -273,10 +273,10 @@
|
||||||
"5,16",
|
"5,16",
|
||||||
{
|
{
|
||||||
"x": 0.25,
|
"x": 0.25,
|
||||||
"c": "#cccccc"
|
"c": "#cccccc",
|
||||||
|
"w": 2
|
||||||
},
|
},
|
||||||
"5,17",
|
"5,17",
|
||||||
"5,18",
|
|
||||||
"5,19"
|
"5,19"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
["08. CYCLE_OUT_IN", 8],
|
["08. CYCLE_OUT_IN", 8],
|
||||||
["09. CYCLE_OUT_IN_DUAL", 9],
|
["09. CYCLE_OUT_IN_DUAL", 9],
|
||||||
["10. CYCLE_PINWHEEL", 10],
|
["10. CYCLE_PINWHEEL", 10],
|
||||||
["11. CYCKE_SPIRAL", 11],
|
["11. CYCLE_SPIRAL", 11],
|
||||||
["12. DUAL_BEACON", 12],
|
["12. DUAL_BEACON", 12],
|
||||||
["13. RAINBOW_BEACON", 13],
|
["13. RAINBOW_BEACON", 13],
|
||||||
["14. JELLYBEAN_RAINDROPS", 14],
|
["14. JELLYBEAN_RAINDROPS", 14],
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
["08. CYCLE_OUT_IN", 8],
|
["08. CYCLE_OUT_IN", 8],
|
||||||
["09. CYCLE_OUT_IN_DUAL", 9],
|
["09. CYCLE_OUT_IN_DUAL", 9],
|
||||||
["10. CYCLE_PINWHEEL", 10],
|
["10. CYCLE_PINWHEEL", 10],
|
||||||
["11. CYCKE_SPIRAL", 11],
|
["11. CYCLE_SPIRAL", 11],
|
||||||
["12. DUAL_BEACON", 12],
|
["12. DUAL_BEACON", 12],
|
||||||
["13. RAINBOW_BEACON", 13],
|
["13. RAINBOW_BEACON", 13],
|
||||||
["14. JELLYBEAN_RAINDROPS", 14],
|
["14. JELLYBEAN_RAINDROPS", 14],
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
},
|
},
|
||||||
"indicators": {
|
"indicators": {
|
||||||
"caps_lock": "C9",
|
"caps_lock": "C9",
|
||||||
|
"num_lock": "B2",
|
||||||
"on_state": 1
|
"on_state": 1
|
||||||
},
|
},
|
||||||
"matrix_pins": {
|
"matrix_pins": {
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
"device_version": "1.0.0"
|
"device_version": "1.0.0"
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"rgb_matrix": true,
|
"rgb_matrix": true
|
||||||
"encoder": true
|
|
||||||
},
|
|
||||||
"encoder": {
|
|
||||||
"rotary": [
|
|
||||||
{
|
|
||||||
"pin_a": "A8",
|
|
||||||
"pin_b": "C9"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"rgb_matrix": {
|
"rgb_matrix": {
|
||||||
"driver": "snled27351_spi",
|
"driver": "snled27351_spi",
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||||
/* Refer to snled27351manual for these locations
|
/* Refer to SNLED27351 manual for these locations
|
||||||
* driver
|
* driver
|
||||||
* | R location
|
* | R location
|
||||||
* | | G location
|
* | | G location
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
"device_version": "1.0.0"
|
"device_version": "1.0.0"
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"led_matrix": true,
|
"led_matrix": true
|
||||||
"encoder": true
|
|
||||||
},
|
|
||||||
"encoder": {
|
|
||||||
"rotary": [
|
|
||||||
{
|
|
||||||
"pin_a": "A8",
|
|
||||||
"pin_b": "C9"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"led_matrix": {
|
"led_matrix": {
|
||||||
"driver": "snled27351_spi",
|
"driver": "snled27351_spi",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
/* Copyright 2024 ~ 2025 @ Keychron (https://www.keychron.com)
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -19,6 +19,19 @@
|
||||||
#define ENCODER_DEFAULT_POS 0x3
|
#define ENCODER_DEFAULT_POS 0x3
|
||||||
#define ENCODER_MAP_KEY_DELAY 2
|
#define ENCODER_MAP_KEY_DELAY 2
|
||||||
|
|
||||||
|
#if defined(RGB_MATRIX_ENABLE) || defined(LED_MATRIX_ENABLE) || defined(LK_WIRELESS_ENABLE)
|
||||||
|
/* SPI configuration */
|
||||||
|
# define SPI_DRIVER SPID1
|
||||||
|
# define SPI_SCK_PIN A5
|
||||||
|
# define SPI_MISO_PIN A6
|
||||||
|
# define SPI_MOSI_PIN A7
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(RGB_MATRIX_ENABLE) || defined(LED_MATRIX_ENABLE)
|
||||||
|
# define LED_DRIVER_SHUTDOWN_PIN B7
|
||||||
|
# define SNLED23751_SPI_DIVISOR 16
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef LK_WIRELESS_ENABLE
|
#ifdef LK_WIRELESS_ENABLE
|
||||||
/* Hardware configuration */
|
/* Hardware configuration */
|
||||||
# define P2P4_MODE_SELECT_PIN A10
|
# define P2P4_MODE_SELECT_PIN A10
|
||||||
|
|
@ -43,26 +56,19 @@
|
||||||
|
|
||||||
# if defined(RGB_MATRIX_ENABLE) || defined(LED_MATRIX_ENABLE)
|
# if defined(RGB_MATRIX_ENABLE) || defined(LED_MATRIX_ENABLE)
|
||||||
|
|
||||||
# define LED_DRIVER_SHUTDOWN_PIN B7
|
|
||||||
|
|
||||||
# define BT_HOST_LED_MATRIX_LIST \
|
# define BT_HOST_LED_MATRIX_LIST \
|
||||||
{ 15, 16, 17 }
|
{ 15, 16, 17 }
|
||||||
|
|
||||||
# define P2P4G_HOST_LED_MATRIX_LIST \
|
# define P2P4G_HOST_LED_MATRIX_LIST \
|
||||||
{ 18 }
|
{ 18 }
|
||||||
|
|
||||||
# define BAT_LEVEL_LED_LIST \
|
# define BAT_LEVEL_LED_LIST \
|
||||||
{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
|
{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
|
||||||
|
|
||||||
/* Backlit disable timeout when keyboard is disconnected(unit: second) */
|
/* Backlit disable timeout when keyboard is disconnected(unit: second) */
|
||||||
# define DISCONNECTED_BACKLIGHT_DISABLE_TIMEOUT 40
|
# define DISCONNECTED_BACKLIGHT_DISABLE_TIMEOUT 40
|
||||||
|
|
||||||
/* Backlit disable timeout when keyboard is connected(unit: second) */
|
/* Backlit disable timeout when keyboard is connected(unit: second) */
|
||||||
# define CONNECTED_BACKLIGHT_DISABLE_TIMEOUT 600
|
# define CONNECTED_BACKLIGHT_DISABLE_TIMEOUT 600
|
||||||
|
|
||||||
/* Reinit LED driver on tranport changed */
|
/* Reinit LED driver on tranport changed */
|
||||||
# define REINIT_LED_DRIVER 1
|
# define REINIT_LED_DRIVER 1
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* Keep USB connection in blueooth mode */
|
/* Keep USB connection in blueooth mode */
|
||||||
|
|
@ -71,11 +77,6 @@
|
||||||
/* Enable bluetooth NKRO */
|
/* Enable bluetooth NKRO */
|
||||||
# define WIRELESS_NKRO_ENABLE
|
# define WIRELESS_NKRO_ENABLE
|
||||||
|
|
||||||
/* Raw hid command for factory test and bluetooth DFU */
|
|
||||||
# define RAW_HID_CMD 0xAA ... 0xAB
|
|
||||||
#else
|
|
||||||
/* Raw hid command for factory test */
|
|
||||||
# define RAW_HID_CMD 0xAB
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Factory test keys */
|
/* Factory test keys */
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,14 @@
|
||||||
"dip_switch": {
|
"dip_switch": {
|
||||||
"pins": ["B14"]
|
"pins": ["B14"]
|
||||||
},
|
},
|
||||||
|
"encoder": {
|
||||||
|
"rotary": [
|
||||||
|
{
|
||||||
|
"pin_a": "A8",
|
||||||
|
"pin_b": "C9"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"indicators": {
|
"indicators": {
|
||||||
"caps_lock": "A13",
|
"caps_lock": "A13",
|
||||||
"on_state": 1
|
"on_state": 1
|
||||||
|
|
@ -196,7 +204,87 @@
|
||||||
{"matrix":[4,14], "x":17.25, "y":4.5},
|
{"matrix":[4,14], "x":17.25, "y":4.5},
|
||||||
{"matrix":[4,15], "x":18.25, "y":4.5}
|
{"matrix":[4,15], "x":18.25, "y":4.5}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"LAYOUT_73_jis": {
|
||||||
|
"layout": [
|
||||||
|
{"matrix":[0, 0], "x":0.75, "y":0.25},
|
||||||
|
{"matrix":[0, 1], "x":1.75, "y":0.25},
|
||||||
|
{"matrix":[0, 2], "x":2.75, "y":0},
|
||||||
|
{"matrix":[0, 3], "x":3.75, "y":0.25},
|
||||||
|
{"matrix":[0, 4], "x":4.75, "y":0.25},
|
||||||
|
{"matrix":[0, 5], "x":5.75, "y":0.25},
|
||||||
|
{"matrix":[0, 6], "x":6.75, "y":0.25},
|
||||||
|
{"matrix":[0, 7], "x":9.5, "y":0.25},
|
||||||
|
{"matrix":[0, 8], "x":10.5, "y":0.25},
|
||||||
|
{"matrix":[0, 9], "x":11.5, "y":0.25},
|
||||||
|
{"matrix":[0,10], "x":12.5, "y":0.25},
|
||||||
|
{"matrix":[0,11], "x":13.5, "y":0},
|
||||||
|
{"matrix":[0,12], "x":14.5, "y":0.25},
|
||||||
|
{"matrix":[0,13], "x":15.5, "y":0.25},
|
||||||
|
{"matrix":[0,14], "x":15.5, "y":0.25},
|
||||||
|
{"matrix":[0,15], "x":18, "y":0},
|
||||||
|
|
||||||
|
{"matrix":[1, 0], "x":0.5, "y":1.25, "w":1.5},
|
||||||
|
{"matrix":[1, 1], "x":2, "y":1.25},
|
||||||
|
{"matrix":[1, 2], "x":3.25, "y":1.25},
|
||||||
|
{"matrix":[1, 3], "x":4.25, "y":1.25},
|
||||||
|
{"matrix":[1, 4], "x":5.25, "y":1.25},
|
||||||
|
{"matrix":[1, 5], "x":6.25, "y":1.25},
|
||||||
|
{"matrix":[1, 6], "x":9, "y":1.25},
|
||||||
|
{"matrix":[1, 7], "x":10, "y":1.25},
|
||||||
|
{"matrix":[1, 8], "x":11, "y":1.25},
|
||||||
|
{"matrix":[1, 9], "x":12, "y":1.25},
|
||||||
|
{"matrix":[1,10], "x":13.25, "y":1.25},
|
||||||
|
{"matrix":[1,11], "x":14.25, "y":1.25},
|
||||||
|
{"matrix":[1,12], "x":15.25, "y":1.25},
|
||||||
|
{"matrix":[1,15], "x":18.25, "y":1.5},
|
||||||
|
|
||||||
|
{"matrix":[2, 0], "x":0.25, "y":2.25, "w":1.75},
|
||||||
|
{"matrix":[2, 1], "x":2, "y":2.25},
|
||||||
|
{"matrix":[2, 2], "x":3.5, "y":2.25},
|
||||||
|
{"matrix":[2, 3], "x":4.5, "y":2.25},
|
||||||
|
{"matrix":[2, 4], "x":5.5, "y":2.25},
|
||||||
|
{"matrix":[2, 5], "x":6.5, "y":2.25},
|
||||||
|
{"matrix":[2, 6], "x":9.5, "y":2.25},
|
||||||
|
{"matrix":[2, 7], "x":10.25, "y":2.25},
|
||||||
|
{"matrix":[2, 8], "x":11.25, "y":2.25},
|
||||||
|
{"matrix":[2, 9], "x":12.25, "y":2.25},
|
||||||
|
{"matrix":[2,10], "x":13.25, "y":2.25},
|
||||||
|
{"matrix":[2,11], "x":14.75, "y":2.25},
|
||||||
|
{"matrix":[2,13], "x":15.75, "y":2.25, "w":2.25},
|
||||||
|
{"matrix":[1,13], "x":16.75, "y":1.25, "w":1.25, "h":2},
|
||||||
|
{"matrix":[2,15], "x":18.5, "y":2.5},
|
||||||
|
|
||||||
|
{"matrix":[3, 0], "x":0, "y":3.25, "w":2.25},
|
||||||
|
{"matrix":[3, 2], "x":2.25, "y":3.25},
|
||||||
|
{"matrix":[3, 3], "x":3.75, "y":3.25},
|
||||||
|
{"matrix":[3, 4], "x":4.75, "y":3.25},
|
||||||
|
{"matrix":[3, 5], "x":5.75, "y":3.25},
|
||||||
|
{"matrix":[3, 6], "x":6.75, "y":3.25},
|
||||||
|
{"matrix":[3, 7], "x":8.5, "y":3.25},
|
||||||
|
{"matrix":[3, 8], "x":9.5, "y":3.25},
|
||||||
|
{"matrix":[3, 9], "x":10.5, "y":3.25},
|
||||||
|
{"matrix":[3,10], "x":11.5, "y":3.25},
|
||||||
|
{"matrix":[3,11], "x":12.5, "y":3.25},
|
||||||
|
{"matrix":[3,12], "x":13.5, "y":3.25},
|
||||||
|
{"matrix":[3,13], "x":14.25, "y":3.25},
|
||||||
|
{"matrix":[3,14], "x":15.25, "y":3.25},
|
||||||
|
{"matrix":[3,15], "x":17.25, "y":3.5},
|
||||||
|
|
||||||
|
{"matrix":[4, 0], "x":0, "y":4.25, "w":1.25},
|
||||||
|
{"matrix":[4, 1], "x":1.25, "y":4.25},
|
||||||
|
{"matrix":[4, 2], "x":2.25, "y":4.25},
|
||||||
|
{"matrix":[4, 3], "x":3.75, "y":4.25, "w":1.25},
|
||||||
|
{"matrix":[4, 4], "x":5, "y":4.25, "w":2.25},
|
||||||
|
{"matrix":[4, 6], "x":7.25, "y":4.25},
|
||||||
|
{"matrix":[4, 7], "x":8.75, "y":4.25},
|
||||||
|
{"matrix":[4, 9], "x":9.75, "y":4.25},
|
||||||
|
{"matrix":[4,11], "x":10.75, "y":4.25},
|
||||||
|
{"matrix":[4,12], "x":12.5, "y":4.25},
|
||||||
|
{"matrix":[4,13], "x":16.25, "y":4.5},
|
||||||
|
{"matrix":[4,14], "x":17.25, "y":4.5},
|
||||||
|
{"matrix":[4,15], "x":18.25, "y":4.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
"device_version": "1.0.0"
|
"device_version": "1.0.0"
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"rgb_matrix": true,
|
"rgb_matrix": true
|
||||||
"encoder": true
|
|
||||||
},
|
|
||||||
"encoder": {
|
|
||||||
"rotary": [
|
|
||||||
{
|
|
||||||
"pin_a": "A8",
|
|
||||||
"pin_b": "C9"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"rgb_matrix": {
|
"rgb_matrix": {
|
||||||
"driver": "snled27351_spi",
|
"driver": "snled27351_spi",
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||||
/* Refer to snled27351manual for these locations
|
/* Refer to SNLED27351 manual for these locations
|
||||||
* driver
|
* driver
|
||||||
* | R location
|
* | R location
|
||||||
* | | G location
|
* | | G location
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
"device_version": "1.0.0"
|
"device_version": "1.0.0"
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"led_matrix": true,
|
"led_matrix": true
|
||||||
"encoder": true
|
|
||||||
},
|
|
||||||
"encoder": {
|
|
||||||
"rotary": [
|
|
||||||
{
|
|
||||||
"pin_a": "A8",
|
|
||||||
"pin_b": "C9"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"led_matrix": {
|
"led_matrix": {
|
||||||
"driver": "snled27351_spi",
|
"driver": "snled27351_spi",
|
||||||
|
|
|
||||||
46
keyboards/keychron/k11_max/jis_encoder/rgb/config.h
Normal file
46
keyboards/keychron/k11_max/jis_encoder/rgb/config.h
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* Copyright 2025 @ Keychron (https://www.keychron.com)
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
/* RGB Matrix driver configuration */
|
||||||
|
# define DRIVER_COUNT 2
|
||||||
|
# define RGB_MATRIX_LED_COUNT 72
|
||||||
|
# define DRIVER_CS_PINS \
|
||||||
|
{ B8, B9 }
|
||||||
|
|
||||||
|
/* Set LED driver current */
|
||||||
|
# define SNLED27351_CURRENT_TUNE \
|
||||||
|
{ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }
|
||||||
|
|
||||||
|
/* Set to infinit, which is use in USB mode by default */
|
||||||
|
# define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE
|
||||||
|
/* Allow shutdown of led driver to save power */
|
||||||
|
# define RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
|
||||||
|
/* Turn off backlight on low brightness to save power */
|
||||||
|
# define RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL 48
|
||||||
|
|
||||||
|
/* Indications */
|
||||||
|
# define LOW_BAT_IND_INDEX \
|
||||||
|
{ 63, 66 }
|
||||||
|
# define DIM_CAPS_LOCK
|
||||||
|
# define CAPS_LOCK_INDEX 30
|
||||||
|
|
||||||
|
# define RGB_MATRIX_KEYPRESSES
|
||||||
|
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||||
|
|
||||||
|
#endif
|
||||||
35
keyboards/keychron/k11_max/jis_encoder/rgb/info.json
Normal file
35
keyboards/keychron/k11_max/jis_encoder/rgb/info.json
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"usb": {
|
||||||
|
"pid": "0x0AB5",
|
||||||
|
"device_version": "1.0.0"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"rgb_matrix": true
|
||||||
|
},
|
||||||
|
"rgb_matrix": {
|
||||||
|
"driver": "snled27351_spi",
|
||||||
|
"animations": {
|
||||||
|
"band_spiral_val": true,
|
||||||
|
"breathing": true,
|
||||||
|
"cycle_all": true,
|
||||||
|
"cycle_left_right": true,
|
||||||
|
"cycle_out_in": true,
|
||||||
|
"cycle_out_in_dual": true,
|
||||||
|
"cycle_pinwheel": true,
|
||||||
|
"cycle_spiral": true,
|
||||||
|
"cycle_up_down": true,
|
||||||
|
"digital_rain": true,
|
||||||
|
"dual_beacon": true,
|
||||||
|
"jellybean_raindrops": true,
|
||||||
|
"pixel_rain": true,
|
||||||
|
"rainbow_beacon": true,
|
||||||
|
"rainbow_moving_chevron": true,
|
||||||
|
"solid_reactive_multinexus": true,
|
||||||
|
"solid_reactive_multiwide": true,
|
||||||
|
"solid_reactive_simple": true,
|
||||||
|
"solid_splash": true,
|
||||||
|
"splash": true,
|
||||||
|
"typing_heatmap": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,81 @@
|
||||||
|
/* Copyright 2025 @ Keychron (https://www.keychron.com)
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
#include "keychron_common.h"
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
MAC_BASE,
|
||||||
|
WIN_BASE,
|
||||||
|
MAC_FN1,
|
||||||
|
WIN_FN1,
|
||||||
|
FN2,
|
||||||
|
};
|
||||||
|
// clang-format off
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[MAC_BASE] = LAYOUT_73_jis(
|
||||||
|
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_INT3, KC_BSPC, KC_MUTE,
|
||||||
|
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_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_BSLS, KC_ENT, KC_HOME,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LOPTN, KC_LCMMD, KC_LNG2, KC_SPC, MO(MAC_FN1), MO(FN2), KC_SPC, KC_LNG1, KC_RCMMD, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[WIN_BASE] = LAYOUT_73_jis(
|
||||||
|
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_INT3, KC_BSPC, KC_MUTE,
|
||||||
|
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_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_BSLS, KC_ENT, KC_HOME,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LWIN, KC_LALT, KC_INT5, KC_SPC, MO(WIN_FN1), MO(FN2), KC_SPC, KC_INT4, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[MAC_FN1] = LAYOUT_73_jis(
|
||||||
|
KC_GRV, KC_BRID, KC_BRIU, KC_MCTRL, KC_LNPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_TOG,
|
||||||
|
_______, BT_HST1, BT_HST2, BT_HST3, P2P4G, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
|
||||||
|
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, KC_END,
|
||||||
|
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, KC_PGUP,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, _______),
|
||||||
|
|
||||||
|
[WIN_FN1] = LAYOUT_73_jis(
|
||||||
|
KC_GRV, KC_BRID, KC_BRIU, KC_TASK, KC_FILE, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_TOG,
|
||||||
|
_______, BT_HST1, BT_HST2, BT_HST3, P2P4G, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
|
||||||
|
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, KC_END,
|
||||||
|
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, KC_PGUP,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, _______),
|
||||||
|
|
||||||
|
[FN2] = LAYOUT_73_jis(
|
||||||
|
KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, BAT_LVL, BAT_LVL, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(ENCODER_MAP_ENABLE)
|
||||||
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||||
|
[MAC_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
|
||||||
|
[WIN_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
|
||||||
|
[MAC_FN1] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
|
||||||
|
[WIN_FN1] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
|
||||||
|
[FN2] = { ENCODER_CCW_CW(_______, _______)},
|
||||||
|
};
|
||||||
|
#endif // ENCODER_MAP_ENABLE
|
||||||
|
|
||||||
|
// clang-format on
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
if (!process_record_keychron_common(keycode, record)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,81 @@
|
||||||
|
/* Copyright 2025 @ Keychron (https://www.keychron.com)
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
#include "keychron_common.h"
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
MAC_BASE,
|
||||||
|
WIN_BASE,
|
||||||
|
MAC_FN1,
|
||||||
|
WIN_FN1,
|
||||||
|
FN2,
|
||||||
|
};
|
||||||
|
// clang-format off
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[MAC_BASE] = LAYOUT_73_jis(
|
||||||
|
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_INT3, KC_BSPC, KC_MUTE,
|
||||||
|
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_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_BSLS, KC_ENT, KC_HOME,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LOPTN, KC_LCMMD, KC_LNG2, KC_SPC, MO(MAC_FN1), MO(FN2), KC_SPC, KC_LNG1, KC_RCMMD, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[WIN_BASE] = LAYOUT_73_jis(
|
||||||
|
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_INT3, KC_BSPC, KC_MUTE,
|
||||||
|
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_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_BSLS, KC_ENT, KC_HOME,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LWIN, KC_LALT, KC_INT5, KC_SPC, MO(WIN_FN1), MO(FN2), KC_SPC, KC_INT4, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[MAC_FN1] = LAYOUT_73_jis(
|
||||||
|
KC_GRV, KC_BRID, KC_BRIU, KC_MCTRL, KC_LNPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_TOG,
|
||||||
|
_______, BT_HST1, BT_HST2, BT_HST3, P2P4G, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
|
||||||
|
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, KC_END,
|
||||||
|
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, KC_PGUP,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, _______),
|
||||||
|
|
||||||
|
[WIN_FN1] = LAYOUT_73_jis(
|
||||||
|
KC_GRV, KC_BRID, KC_BRIU, KC_TASK, KC_FILE, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_TOG,
|
||||||
|
_______, BT_HST1, BT_HST2, BT_HST3, P2P4G, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
|
||||||
|
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, KC_END,
|
||||||
|
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, KC_PGUP,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, _______),
|
||||||
|
|
||||||
|
[FN2] = LAYOUT_73_jis(
|
||||||
|
KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, BAT_LVL, BAT_LVL, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(ENCODER_MAP_ENABLE)
|
||||||
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||||
|
[MAC_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
|
||||||
|
[WIN_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
|
||||||
|
[MAC_FN1] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
|
||||||
|
[WIN_FN1] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
|
||||||
|
[FN2] = { ENCODER_CCW_CW(_______, _______)},
|
||||||
|
};
|
||||||
|
#endif // ENCODER_MAP_ENABLE
|
||||||
|
|
||||||
|
// clang-format on
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
if (!process_record_keychron_common(keycode, record)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
VIA_ENABLE = yes
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue