mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-27 11:38:58 +06:00
bf962821b3
Its use in lets_split_eh was factored out in https://github.com/qmk/qmk_firmware/pull/6411
20 lines
622 B
C
20 lines
622 B
C
#if defined(USE_I2C)
|
|
// When using I2C, using rgblight implicitly involves split support.
|
|
# if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT)
|
|
# define RGBLIGHT_SPLIT
|
|
# endif
|
|
|
|
# ifndef F_SCL
|
|
# define F_SCL 100000UL // SCL frequency
|
|
# 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
|
|
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
|
|
// When using serial and RGBLIGHT_SPLIT need separate transaction
|
|
# define SERIAL_USE_MULTI_TRANSACTION
|
|
# endif
|
|
#endif
|