forked from mirrors/qmk_userspace
L3 fixed wireless LED indication, added Win locking indication, tidied up code
This commit is contained in:
parent
1e72758c02
commit
161a6984ba
15 changed files with 82 additions and 96 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Lemokey (https://www.lemokey.com)
|
||||
/* Copyright 2023 ~ 2024 @ Lemokey (https://www.lemokey.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
|
||||
|
@ -18,35 +18,27 @@
|
|||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
/* RGB Matrix driver configuration */
|
||||
# define DRIVER_COUNT 2
|
||||
# define DRIVER_1_LED_COUNT 47
|
||||
# define DRIVER_2_LED_COUNT 45
|
||||
# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_COUNT + DRIVER_2_LED_COUNT)
|
||||
|
||||
# define SPI_SCK_PIN A5
|
||||
# define SPI_MISO_PIN A6
|
||||
# define SPI_MOSI_PIN A7
|
||||
|
||||
# define DRIVER_CS_PINS \
|
||||
{ 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) */
|
||||
# define PHASE_CHANNEL MSKPHASE_9CHANNEL
|
||||
|
||||
/* Set LED driver current */
|
||||
# define SNLED27351_CURRENT_TUNE \
|
||||
{ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }
|
||||
{ 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24 }
|
||||
|
||||
/* 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 32
|
||||
|
||||
/* Indications */
|
||||
# define WINLOCK_LED_LIST \
|
||||
{ 82 }
|
||||
|
||||
# define RGB_MATRIX_KEYPRESSES
|
||||
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
{"matrix":[4,0], "x":0, "y":4},
|
||||
|
||||
{"matrix":[4,1], "x":1.25, "y":4.25, "w":1.25},
|
||||
{"matrix":[4,2], "x":2.5, "y":4.25},
|
||||
{"matrix":[4,2], "x":2.5, "y":4.25},
|
||||
{"matrix":[4,3], "x":3.5, "y":4.25},
|
||||
{"matrix":[4,4], "x":4.5, "y":4.25},
|
||||
{"matrix":[4,5], "x":5.5, "y":4.25},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Lemokey (https://www.lemokey.com)
|
||||
/* Copyright 2023 ~ 2024 @ Lemokey (https://www.lemokey.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
|
||||
|
@ -22,9 +22,9 @@ const snled27351_led_t g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
|||
/* Refer to SNLED27351 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
* | | | B location
|
||||
* | | | | */
|
||||
* | | G location
|
||||
* | | | B location
|
||||
* | | | | */
|
||||
{0, G_2, I_2, H_2},
|
||||
{0, G_3, I_3, H_3},
|
||||
{0, G_4, I_4, H_4},
|
||||
|
@ -125,8 +125,8 @@ const snled27351_led_t g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
|||
};
|
||||
|
||||
led_config_t g_led_config = {
|
||||
{
|
||||
{ NO_LED, NO_LED, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, },
|
||||
{
|
||||
{ NO_LED, NO_LED, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, },
|
||||
{ NO_LED, 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, NO_LED, 64, NO_LED, NO_LED, NO_LED, },
|
||||
|
|
|
@ -36,7 +36,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
_______, BT_HST1, BT_HST2, BT_HST3, P2P4G, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, 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, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, BAT_LVL, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, GUI_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
};
|
||||
// clang-format on
|
||||
|
|
|
@ -36,7 +36,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
_______, BT_HST1, BT_HST2, BT_HST3, P2P4G, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, 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, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, BAT_LVL, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, GUI_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
};
|
||||
// clang-format on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue