keychron_qmk_firmware/quantum/led_matrix
Less/Rikki 346b06d391
refactor: move default RGB/LED matrix #defines (#21938)
* refactor: move default RGB/LED matrix #defines

Moving the fallback definitions of macros like LED_MATRIX_VAL_STEP and
RGB_MATRIX_MAXIMUM_BRIGHTNESS to header files allows keyboards to
leverage these defaults without requiring #ifdef guards (and often
repeating said fallback definitions).

* style: use if(n)def for consistency

and remove redundant UINT8_MAX checks on maximum brightness

Co-authored-by: Joel Challis <git@zvecr.com>

* refactor: remove INDICATOR_MAX_BRIGHTNESS macro

Co-authored-by: Joel Challis <git@zvecr.com>

---------

Co-authored-by: Joel Challis <git@zvecr.com>
2023-09-28 11:51:18 +01:00
..
animations Merge remote-tracking branch 'upstream/master' into develop 2022-02-19 04:27:09 +11:00
led_matrix_drivers.c is31fl3218: Add LED Matrix support (#22126) 2023-09-27 14:37:06 +10:00
led_matrix_types.h Move PACKED define to util.h (#22074) 2023-09-20 07:33:54 +01:00
led_matrix.c refactor: move default RGB/LED matrix #defines (#21938) 2023-09-28 11:51:18 +01:00
led_matrix.h refactor: move default RGB/LED matrix #defines (#21938) 2023-09-28 11:51:18 +01:00
post_config.h Simplfy RGB/LED matrix effect logic (#21703) 2023-08-23 00:03:01 +01:00