forked from mirror/qmk_firmware
add quantum/rgblight_post_config.h, quantum/split_common/post_config.h
Add quantum/rgblight_post_config.h and quantum/split_common/post_config.h using POST_CONFIG_H variable of build_keyboard.mk. quantum/rgblight_post_config.h additionally defines RGBLIGHT_SPLIT if RGBLED_SPIT is defined. quantum/split_common/post_config.h defines RGBLIGHT_SPLIT additionally when master-slave communication is I2C.
This commit is contained in:
11
quantum/split_common/post_config.h
Normal file
11
quantum/split_common/post_config.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#if defined(USE_I2C) || defined(EH)
|
||||
// When using I2C, using rgblight implicitly involves split support.
|
||||
#if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT)
|
||||
#define RGBLIGHT_SPLIT
|
||||
#endif
|
||||
|
||||
#else // use serial
|
||||
// When using serial, the user must define RGBLIGHT_SPLIT explicitly
|
||||
// in config.h as needed.
|
||||
// see quantum/rgblight_post_config.h
|
||||
#endif
|
||||
Reference in New Issue
Block a user