1b0e83b1d6
Port the Keychron RGB EEPROM persistence work from the Q5 Max (PR #18) to the K17 Max ANSI Encoder RGB variant. - Add KEYCHRON_RGB_ENABLE = yes to rules.mk - Define default_per_key_led[] (red Esc/CapsLock, yellow modifiers and numpad, blue alpha keys) and default_region[] for the 103-LED layout in ansi_encoder/rgb/rgb.c; both are extern'd by keychron_rgb.c - Add wireless_enter_connected_kb() hook and eeconfig_init_custom_rgb() call in keyboard_post_init_kb() in k17_max.c, matching the Q5 Max pattern for boot-time and transport-change RGB persistence - Define VIA_EEPROM_MAGIC_ADDR 552 in ansi_encoder/rgb/config.h to pin VIA keymap storage past the Keychron EEPROM data region end (540 for K17 with 103 LEDs); prevents keymap corruption if the KB data block grows in future
7 lines
175 B
Makefile
7 lines
175 B
Makefile
KEYCHRON_RGB_ENABLE = yes
|
|
|
|
include keyboards/keychron/common/wireless/wireless.mk
|
|
include keyboards/keychron/common/keychron_common.mk
|
|
|
|
VPATH += $(TOP_DIR)/keyboards/keychron
|