Add Q5/Q6/Q8/K5/K7/V5 Max

This commit is contained in:
lokher 2024-01-31 18:25:41 +08:00
commit 0b812c9dc0
160 changed files with 10423 additions and 187 deletions

View file

@ -47,7 +47,7 @@
/* Turn off backlight on low brightness to save power */
# define RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL 32
/* Indicator */
/* Indications */
# define BT_HOST_LED_MATRIX_LIST \
{ 15, 16, 17 }

View file

@ -58,7 +58,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
};
// clang-format on
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
@ -68,6 +67,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
};
#endif // ENCODER_MAP_ENABLE
// clang-format on
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!process_record_keychron_common(keycode, record)) {
return false;

View file

@ -30,10 +30,6 @@
#define POWER_ON_LED_DURATION 3000
static uint32_t power_on_indicator_timer_buffer;
#ifdef KEYCHRON_CALLBACK_ENABLE
bool keychron_task_kb(void);
#endif
#ifdef DIP_SWITCH_ENABLE
bool dip_switch_update_kb(uint8_t index, bool active) {
if (index == 0) {
@ -60,11 +56,7 @@ void keyboard_post_init_kb(void) {
#ifdef ENCODER_ENABLE
encoder_cb_init();
#endif
#ifdef KEYCHRON_CALLBACK_ENABLE
factory_test_init();
register_record_process(process_record_keychron_kb, false);
register_keychron_task(keychron_task_kb, false);
#endif
keyboard_post_init_user();
}