Added wireless support; Added Lemokey L3; Added Keychron V1 Max

This commit is contained in:
lokher 2024-01-10 16:22:49 +08:00
parent 9539f135d8
commit 4ae5990fcc
31585 changed files with 99327 additions and 1763186 deletions

View file

@ -40,6 +40,8 @@
# include "is31flcommon.h"
#elif defined(RGB_MATRIX_SNLED27351)
# include "snled27351.h"
#elif defined(RGB_MATRIX_SNLED27351_SPI)
# include "snled27351-spi.h"
#elif defined(RGB_MATRIX_AW20216S)
# include "aw20216s.h"
#elif defined(RGB_MATRIX_WS2812)
@ -131,6 +133,8 @@ struct rgb_matrix_limits_t rgb_matrix_get_limits(uint8_t iter);
#define RGB_MATRIX_TEST_LED_FLAGS() \
if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) continue
#define RGB_MATRIX_TIMEOUT_INFINITE (UINT32_MAX)
enum rgb_matrix_effects {
RGB_MATRIX_NONE = 0,
@ -169,6 +173,9 @@ void process_rgb_matrix(uint8_t row, uint8_t col, bool pressed);
void rgb_matrix_task(void);
void rgb_matrix_none_indicators_kb(void);
void rgb_matrix_none_indicators_user(void);
// This runs after another backlight effect and replaces
// colors already set
void rgb_matrix_indicators(void);
@ -227,6 +234,19 @@ void rgb_matrix_decrease_speed_noeeprom(void);
led_flags_t rgb_matrix_get_flags(void);
void rgb_matrix_set_flags(led_flags_t flags);
void rgb_matrix_set_flags_noeeprom(led_flags_t flags);
#ifdef RGB_MATRIX_TIMEOUT
# if RGB_MATRIX_TIMEOUT > 0
void rgb_matrix_disable_timeout_set(uint32_t timeout);
void rgb_matrix_disable_time_reset(void);
bool rgb_matrix_timeouted(void);
# endif
#endif
#ifdef RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
void rgb_matrix_driver_shutdown(void);
void rgb_matrix_driver_exit_shutdown(void);
bool rgb_matrix_is_driver_shutdown(void);
bool rgb_matrix_driver_allow_shutdown(void);
#endif
#ifndef RGBLIGHT_ENABLE
# define eeconfig_update_rgblight_current eeconfig_update_rgb_matrix
@ -281,6 +301,12 @@ typedef struct {
void (*set_color_all)(uint8_t r, uint8_t g, uint8_t b);
/* Flush any buffered changes to the hardware. */
void (*flush)(void);
#ifdef RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
/* Shutdown the driver. */
void (*shutdown)(void);
/* Exit from shutdown state. */
void (*exit_shutdown)(void);
#endif
} rgb_matrix_driver_t;
static inline bool rgb_matrix_check_finished_leds(uint8_t led_idx) {