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.pull/5509/head
parent
f6e8aeb971
commit
1aa14c5668
@ -0,0 +1,5 @@
|
||||
#if defined(RGBLED_SPLIT) && !defined(RGBLIGHT_SPLIT)
|
||||
// When RGBLED_SPLIT is defined,
|
||||
// it is considered that RGBLIGHT_SPLIT is defined implicitly.
|
||||
#define RGBLIGHT_SPLIT
|
||||
#endif
|
@ -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
|
Loading…
Reference in new issue