L3 fixed wireless LED indication, added Win locking indication, tidied up code

This commit is contained in:
lokher 2024-11-28 11:32:38 +08:00
parent 1e72758c02
commit 161a6984ba
15 changed files with 82 additions and 96 deletions

View file

@ -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
@ -20,9 +20,21 @@
#define ENCODER_DEFAULT_POS 0x3
#define ENCODER_MAP_KEY_DELAY 2
/* Caps lock LED */
#define LED_CAPS_LOCK_PIN A13
#define LED_PIN_ON_STATE 1
#if defined(RGB_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)
# define DRIVER_COUNT 2
# define DRIVER_CS_PINS \
{ B8, B9 }
# define LED_DRIVER_SHUTDOWN_PIN B7
# define SNLED23751_SPI_DIVISOR 16
#endif
#ifdef LK_WIRELESS_ENABLE
/* Hardware configuration */
@ -41,19 +53,14 @@
# define BT_HOST_DEVICES_COUNT 3
# define BT_HOST_LED_PIN_LIST \
# define BT_INDICATION_LED_PIN_LIST \
{ C9, C9, C9 }
# define HOST_LED_PIN_ON_STATE 0
# define BT_INDICATION_LED_ON_STATE 0
# define P24G_HOST_DEVICES_COUNT 1
# define P24G_HOST_LED_PIN_LIST \
{ A8 }
# define P24G_INDICATION_LED_PIN A8
# if defined(RGB_MATRIX_ENABLE) || defined(LED_MATRIX_ENABLE)
# define LED_DRIVER_SHUTDOWN_PIN B7
# define BT_INDICATION_LED_LIST \
{ 17, 18, 19 }
@ -78,12 +85,6 @@
/* Enable bluetooth NKRO */
# 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
/* Factory test keys */