2019-12-02 12:10:09 -05:00
|
|
|
#if defined(USE_I2C)
|
2019-08-30 11:19:03 -07:00
|
|
|
// When using I2C, using rgblight implicitly involves split support.
|
|
|
|
|
# if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT)
|
|
|
|
|
# define RGBLIGHT_SPLIT
|
|
|
|
|
# endif
|
2019-04-20 07:25:08 +09:00
|
|
|
|
2019-08-30 11:19:03 -07:00
|
|
|
# ifndef F_SCL
|
|
|
|
|
# define F_SCL 100000UL // SCL frequency
|
|
|
|
|
# endif
|
2019-06-20 01:02:20 -04:00
|
|
|
|
2019-04-20 07:25:08 +09:00
|
|
|
#else // use serial
|
2019-08-30 11:19:03 -07:00
|
|
|
// 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
|
2019-04-20 07:25:08 +09:00
|
|
|
#endif
|