forked from mirrors/qmk_userspace
V1 Max ISO version updated to 1.0.2; tidied up V1 Max
This commit is contained in:
parent
ebdaa0469c
commit
79dadb3831
7 changed files with 30 additions and 44 deletions
|
@ -21,11 +21,11 @@
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
const snled27351_led_t g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
const snled27351_led_t g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||||
/* Refer to SNLED27351 manual for these locations
|
/* Refer to SNLED27351 manual for these locations
|
||||||
* driver
|
* driver
|
||||||
* | R location
|
* | R location
|
||||||
* | | G location
|
* | | G location
|
||||||
* | | | B location
|
* | | | B location
|
||||||
* | | | | */
|
* | | | | */
|
||||||
{0, G_1, I_1, H_1},
|
{0, G_1, I_1, H_1},
|
||||||
{0, G_2, I_2, H_2},
|
{0, G_2, I_2, H_2},
|
||||||
{0, G_3, I_3, H_3},
|
{0, G_3, I_3, H_3},
|
||||||
|
|
|
@ -18,28 +18,19 @@
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
/* RGB Matrix driver configuration */
|
/* RGB Matrix driver configuration */
|
||||||
# define DRIVER_COUNT 2
|
|
||||||
# define RGB_MATRIX_LED_COUNT 81
|
# define RGB_MATRIX_LED_COUNT 81
|
||||||
|
# define DRIVER_COUNT 2
|
||||||
# define SPI_SCK_PIN A5
|
|
||||||
# define SPI_MISO_PIN A6
|
|
||||||
# define SPI_MOSI_PIN A7
|
|
||||||
|
|
||||||
# define DRIVER_CS_PINS \
|
# define DRIVER_CS_PINS \
|
||||||
{ B8, B9 }
|
{ B8, B9 }
|
||||||
# define SNLED23751_SPI_DIVISOR 16
|
|
||||||
# define SPI_DRIVER SPID1
|
|
||||||
|
|
||||||
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in snled27351.h) */
|
/* 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 */
|
/* Set LED driver current */
|
||||||
# define SNLED27351_CURRENT_TUNE \
|
# define SNLED27351_CURRENT_TUNE \
|
||||||
{ 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C }
|
{ 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C }
|
||||||
|
|
||||||
/* Set to infinit, which is use in USB mode by default */
|
/* Set to infinit, which is use in USB mode by default */
|
||||||
# define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE
|
# define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE
|
||||||
|
|
||||||
/* Allow shutdown of led driver to save power */
|
/* Allow shutdown of led driver to save power */
|
||||||
# define RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
|
# define RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
|
||||||
/* Turn off backlight on low brightness to save power */
|
/* Turn off backlight on low brightness to save power */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
/* Copyright 2023 ~ 2024 @ 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
|
||||||
|
@ -20,6 +20,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
|
||||||
|
@ -42,8 +55,6 @@
|
||||||
|
|
||||||
# if defined(RGB_MATRIX_ENABLE)
|
# if defined(RGB_MATRIX_ENABLE)
|
||||||
|
|
||||||
# define LED_DRIVER_SHUTDOWN_PIN B7
|
|
||||||
|
|
||||||
/* 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
|
||||||
|
|
||||||
|
@ -60,12 +71,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 */
|
||||||
|
|
|
@ -18,28 +18,19 @@
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
/* RGB Matrix driver configuration */
|
/* RGB Matrix driver configuration */
|
||||||
# define DRIVER_COUNT 2
|
|
||||||
# define RGB_MATRIX_LED_COUNT 82
|
# define RGB_MATRIX_LED_COUNT 82
|
||||||
|
# define DRIVER_COUNT 2
|
||||||
# define SPI_SCK_PIN A5
|
|
||||||
# define SPI_MISO_PIN A6
|
|
||||||
# define SPI_MOSI_PIN A7
|
|
||||||
|
|
||||||
# define DRIVER_CS_PINS \
|
# define DRIVER_CS_PINS \
|
||||||
{ B8, B9 }
|
{ B8, B9 }
|
||||||
# define SNLED23751_SPI_DIVISOR 16
|
|
||||||
# define SPI_DRIVER SPID1
|
|
||||||
|
|
||||||
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in snled27351.h) */
|
/* 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 */
|
/* Set LED driver current */
|
||||||
# define SNLED27351_CURRENT_TUNE \
|
# define SNLED27351_CURRENT_TUNE \
|
||||||
{ 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C }
|
{ 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C }
|
||||||
|
|
||||||
/* Set to infinit, which is use in USB mode by default */
|
/* Set to infinit, which is use in USB mode by default */
|
||||||
# define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE
|
# define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE
|
||||||
|
|
||||||
/* Allow shutdown of led driver to save power */
|
/* Allow shutdown of led driver to save power */
|
||||||
# define RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
|
# define RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
|
||||||
/* Turn off backlight on low brightness to save power */
|
/* Turn off backlight on low brightness to save power */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"usb": {
|
"usb": {
|
||||||
"pid": "0x0914",
|
"pid": "0x0914",
|
||||||
"device_version": "1.0.0"
|
"device_version": "1.0.2"
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"encoder": true,
|
"encoder": true,
|
||||||
|
|
|
@ -21,11 +21,11 @@
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
const snled27351_led_t g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
const snled27351_led_t g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||||
/* Refer to SNLED27351 manual for these locations
|
/* Refer to SNLED27351 manual for these locations
|
||||||
* driver
|
* driver
|
||||||
* | R location
|
* | R location
|
||||||
* | | G location
|
* | | G location
|
||||||
* | | | B location
|
* | | | B location
|
||||||
* | | | | */
|
* | | | | */
|
||||||
{0, G_1, I_1, H_1},
|
{0, G_1, I_1, H_1},
|
||||||
{0, G_2, I_2, H_2},
|
{0, G_2, I_2, H_2},
|
||||||
{0, G_3, I_3, H_3},
|
{0, G_3, I_3, H_3},
|
||||||
|
@ -130,7 +130,7 @@ led_config_t g_led_config = {
|
||||||
{
|
{
|
||||||
// LED Index to Physical Position
|
// LED Index to Physical Position
|
||||||
{0, 0}, {18, 0}, {33, 0}, {48, 0}, {62, 0}, {81, 0}, {95, 0}, {110, 0}, {125, 0}, {143, 0}, {157, 0}, {172, 0}, {187, 0}, {205, 0},
|
{0, 0}, {18, 0}, {33, 0}, {48, 0}, {62, 0}, {81, 0}, {95, 0}, {110, 0}, {125, 0}, {143, 0}, {157, 0}, {172, 0}, {187, 0}, {205, 0},
|
||||||
{0,15}, {15,15}, {29,15}, {44,15}, {59,15}, {73,15}, {88,15}, {103,15}, {117,15}, {132,15}, {146,15}, {161,15}, {176,15}, {198,15}, {224,15},
|
{0,15}, {15,15}, {29,15}, {44,15}, {59,15}, {73,15}, {88,15}, {103,15}, {117,15}, {132,15}, {146,15}, {161,15}, {176,15}, {203,15}, {224,15},
|
||||||
{4,26}, {22,26}, {37,26}, {51,26}, {66,26}, {81,26}, {95,26}, {110,26}, {125,26}, {139,26}, {154,26}, {168,26}, {183,26}, {224,26},
|
{4,26}, {22,26}, {37,26}, {51,26}, {66,26}, {81,26}, {95,26}, {110,26}, {125,26}, {139,26}, {154,26}, {168,26}, {183,26}, {224,26},
|
||||||
{6,38}, {26,38}, {40,38}, {55,38}, {70,38}, {84,38}, {99,38}, {114,38}, {128,38}, {143,38}, {158,38}, {172,38}, {187,38}, {203,32}, {224,38},
|
{6,38}, {26,38}, {40,38}, {55,38}, {70,38}, {84,38}, {99,38}, {114,38}, {128,38}, {143,38}, {158,38}, {172,38}, {187,38}, {203,32}, {224,38},
|
||||||
{2,49}, {18,49}, {33,49}, {48,49}, {62,49}, {77,49}, {92,49}, {106,49}, {121,49}, {136,49}, {150,49}, {165,49}, {185,49}, {209,52},
|
{2,49}, {18,49}, {33,49}, {48,49}, {62,49}, {77,49}, {92,49}, {106,49}, {121,49}, {136,49}, {150,49}, {165,49}, {185,49}, {209,52},
|
||||||
|
|
|
@ -56,7 +56,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_END,
|
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_END,
|
||||||
_______, _______, _______, _______, _______, _______, BAT_LVL, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
_______, _______, _______, _______, _______, _______, BAT_LVL, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue