forked from mirrors/qmk_userspace
Add Q5/Q6/Q8/K5/K7/V5 Max
This commit is contained in:
parent
f45cb07e26
commit
0b812c9dc0
160 changed files with 10423 additions and 187 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -19,9 +19,7 @@
|
|||
#ifdef RGB_MATRIX_ENABLE
|
||||
/* RGB Matrix driver configuration */
|
||||
# define DRIVER_COUNT 2
|
||||
# define DRIVER_1_LED_COUNT 46
|
||||
# define DRIVER_2_LED_COUNT 38
|
||||
# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_COUNT + DRIVER_2_LED_COUNT)
|
||||
# define RGB_MATRIX_LED_COUNT 84
|
||||
|
||||
# define SPI_SCK_PIN A5
|
||||
# define SPI_MISO_PIN A6
|
||||
|
@ -33,7 +31,7 @@
|
|||
# define SPI_DRIVER SPID1
|
||||
|
||||
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in snled27351.h) */
|
||||
# define PHASE_CHANNEL MSKPHASE_9CHANNEL
|
||||
# define SNLED27351_PHASE_CHANNEL MSKPHASE_9CHANNEL
|
||||
|
||||
/* Set LED driver current */
|
||||
# define SNLED27351_CURRENT_TUNE \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -23,6 +23,7 @@ enum layers {
|
|||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_ansi_84(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -23,6 +23,7 @@ enum layers {
|
|||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_ansi_84(
|
||||
|
@ -55,7 +56,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, BAT_LVL, NK_TOGG, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -121,12 +121,12 @@ const snled27351_led_t g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
|||
led_config_t g_led_config = {
|
||||
{
|
||||
// Key Matrix to LED Index
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||
{ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, __, 30 },
|
||||
{ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, __, 45 },
|
||||
{ 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, __, 58, __, 59 },
|
||||
{ 60, __, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, __, 71, 72, 73 },
|
||||
{ 74, 75, 76, __, __, __, 77, __, __, __, 78, 79, 80, 81, 82, 83 }
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||
{ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, __, 30 },
|
||||
{ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, __, 45 },
|
||||
{ 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, __, 58, __, 59 },
|
||||
{ 60, __, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, __, 71, 72, 73 },
|
||||
{ 74, 75, 76, __, __, __, 77, __, __, __, 78, 79, 80, 81, 82, 83 }
|
||||
},
|
||||
{
|
||||
// LED Index to Physical Position
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -31,7 +31,7 @@
|
|||
# define SPI_DRIVER SPID1
|
||||
|
||||
/* Use first 6 channels of LED driver */
|
||||
# define PHASE_CHANNEL MSKPHASE_6CHANNEL
|
||||
# define SNLED27351_PHASE_CHANNEL MSKPHASE_6CHANNEL
|
||||
|
||||
/* Set LED driver current */
|
||||
# define SNLED27351_CURRENT_TUNE \
|
||||
|
@ -44,7 +44,7 @@
|
|||
/* Turn off backlight on low brightness to save power */
|
||||
# define LED_MATRIX_BRIGHTNESS_TURN_OFF_VAL 48
|
||||
|
||||
/* Caps lock indicating led */
|
||||
/* Indications */
|
||||
# define DIM_CAPS_LOCK
|
||||
# define CAPS_LOCK_INDEX 46
|
||||
# define LOW_BAT_IND_INDEX \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -23,6 +23,7 @@ enum layers {
|
|||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_ansi_84(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -23,6 +23,7 @@ enum layers {
|
|||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_ansi_84(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ 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
|
||||
|
@ -119,14 +119,14 @@ const snled27351_led_t g_snled27351_leds[LED_MATRIX_LED_COUNT] = {
|
|||
led_config_t g_led_config = {
|
||||
{
|
||||
// Key Matrix to LED Index
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||
{ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, __, 30 },
|
||||
{ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, __, 45 },
|
||||
{ 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, __, 58, __, 59 },
|
||||
{ 60, __, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, __, 71, 72, 73 },
|
||||
{ 74, 75, 76, __, __, __, 77, __, __, __, 78, 79, 80, 81, 82, 83 }
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||
{ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, __, 30 },
|
||||
{ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, __, 45 },
|
||||
{ 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, __, 58, __, 59 },
|
||||
{ 60, __, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, __, 71, 72, 73 },
|
||||
{ 74, 75, 76, __, __, __, 77, __, __, __, 78, 79, 80, 81, 82, 83 }
|
||||
},
|
||||
{
|
||||
{
|
||||
// LED Index to Physical Position
|
||||
{0, 0}, {14, 0}, {29, 0}, {44, 0}, {59, 0}, {74, 0}, { 89, 0}, {104, 0}, {119, 0}, {134, 0}, {149, 0}, {164, 0}, {179, 0}, {194, 0}, {209, 0}, {223, 0},
|
||||
{0,12}, {14,12}, {29,12}, {44,12}, {59,12}, {74,12}, { 89, 12}, {104, 12}, {119, 12}, {134, 12}, {149, 12}, {164, 12}, {179, 12}, {201, 12}, {223, 12},
|
||||
|
@ -145,4 +145,5 @@ led_config_t g_led_config = {
|
|||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue