-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RGBLIGHT_DEFAULT_ON
macro configuration option
#20857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking this should be inverted and default to true
to be consistent with the other defines:
#if !defined(RGBLIGHT_DEFAULT_ON)
# define RGBLIGHT_DEFAULT_ON true
#endif
So the idea would be, if I want the RGB off by default I'd use #undef RGBLIGHT_DEFAULT_ON ? |
No, you'd set it to |
Co-authored by: fauxpark
Done in c253989 |
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Thank you for your contribution! |
RGB_DEFAULT_DISABLED
macro configuration optionRGBLIGHT_DEFAULT_ON
macro configuration option
* ADD RGB_DEFAULT_DISABLED option and updated documentation * Formatting * Add as by fauxpark's suggestion Co-authored by: fauxpark * Formatting * Use boolean values instead of numerical Co-authored-by: Ryan <fauxpark@gmail.com> * Edit documentation formatting Co-authored-by: Ryan <fauxpark@gmail.com> * Remove comment Co-authored-by: Ryan <fauxpark@gmail.com> * Set RGB mode to DEFAULT macro at init Co-authored-by: Ryan <fauxpark@gmail.com> --------- Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: zvecr <git@zvecr.com>
* ADD RGB_DEFAULT_DISABLED option and updated documentation * Formatting * Add as by fauxpark's suggestion Co-authored by: fauxpark * Formatting * Use boolean values instead of numerical Co-authored-by: Ryan <fauxpark@gmail.com> * Edit documentation formatting Co-authored-by: Ryan <fauxpark@gmail.com> * Remove comment Co-authored-by: Ryan <fauxpark@gmail.com> * Set RGB mode to DEFAULT macro at init Co-authored-by: Ryan <fauxpark@gmail.com> --------- Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: zvecr <git@zvecr.com>
* ADD RGB_DEFAULT_DISABLED option and updated documentation * Formatting * Add as by fauxpark's suggestion Co-authored by: fauxpark * Formatting * Use boolean values instead of numerical Co-authored-by: Ryan <fauxpark@gmail.com> * Edit documentation formatting Co-authored-by: Ryan <fauxpark@gmail.com> * Remove comment Co-authored-by: Ryan <fauxpark@gmail.com> * Set RGB mode to DEFAULT macro at init Co-authored-by: Ryan <fauxpark@gmail.com> --------- Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: zvecr <git@zvecr.com>
* ADD RGB_DEFAULT_DISABLED option and updated documentation * Formatting * Add as by fauxpark's suggestion Co-authored by: fauxpark * Formatting * Use boolean values instead of numerical Co-authored-by: Ryan <fauxpark@gmail.com> * Edit documentation formatting Co-authored-by: Ryan <fauxpark@gmail.com> * Remove comment Co-authored-by: Ryan <fauxpark@gmail.com> * Set RGB mode to DEFAULT macro at init Co-authored-by: Ryan <fauxpark@gmail.com> --------- Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: zvecr <git@zvecr.com>
* ADD RGB_DEFAULT_DISABLED option and updated documentation * Formatting * Add as by fauxpark's suggestion Co-authored by: fauxpark * Formatting * Use boolean values instead of numerical Co-authored-by: Ryan <fauxpark@gmail.com> * Edit documentation formatting Co-authored-by: Ryan <fauxpark@gmail.com> * Remove comment Co-authored-by: Ryan <fauxpark@gmail.com> * Set RGB mode to DEFAULT macro at init Co-authored-by: Ryan <fauxpark@gmail.com> --------- Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: zvecr <git@zvecr.com>
Description
Adds the possibility of defining RGB lighting disabled by deafult at EEPROM initialization.
This is done through a macro in
config.h
:The macro works in the
rgblight.c
quantum driver setting enable to true if the macro is not enabled and false if it is.An accompanying addition to the documentation is also pushed.
This was tested on a couple PCBs around; all STM32 though, but I am sure this should not pose an issue for the AVR units.
Types of Changes
Issues Fixed or Closed by This PR
Checklist