1
0
Fork 0

Addition of hard brigtness limit for RGB_Matrix (#3299)

* Addition of hard brigtness limit for RGB_Matrix

- Added a define "RGB_MATRIX_MAXIMUM_BRIGHTNESS" to enable hard limiting the maximum brightness for rgb_matrix
- Used the above define to limit the maximum brigthness of HS60 for better stability

* Added docs for new rgb_matrix define

* Addition of check for maximum brightness
This commit is contained in:
yiancar 2018-07-03 19:52:04 +03:00 committed by Jack Humbert
parent dad851d47d
commit a7df902734
3 changed files with 9 additions and 3 deletions

View file

@ -127,6 +127,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
#define RGB_MATRIX_SKIP_FRAMES 0
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 215
#define DRIVER_ADDR_1 0b1110100
#define DRIVER_ADDR_2 0b1110101