qmk_firmware/quantum
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
..
audio audio: Don't play the first note of zero-note melodies (#21661) 2023-08-02 17:07:43 +01:00
backlight Relocate backlight drivers (#21444) 2023-07-08 23:13:10 +10:00
bootmagic quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
debounce [Enhancement] Improvements for debounce test coverage + bug fixes for sym_defer_g and sym_eager_pr (#21667) 2023-09-25 12:48:55 +10:00
encoder/tests quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
keymap_extras keycode aliases: work around ChibiOS ch.h include guard (#21497) 2023-07-31 09:35:06 +10:00
led_matrix refactor: move default RGB/LED matrix #defines (#21938) 2023-09-28 11:51:18 +01:00
logging
midi Unify MIDI note calculation with the audio feature's algorithm (#21588) 2023-07-27 16:14:34 -07:00
os_detection/tests
painter [Enhancement] QP Getters (#21171) 2023-09-25 12:31:46 +10:00
pointing_device quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
process_keycode Improve test invocation, fix Retro Shift bugs, and add Auto+Retro Shift test cases (#15889) 2023-09-25 12:45:49 +10:00
rgb_matrix refactor: move default RGB/LED matrix #defines (#21938) 2023-09-28 11:51:18 +01:00
rgblight Move velocikey to within rgblight (#22123) 2023-09-25 17:48:10 +01:00
send_string Update Doxygen comments for some headers (#20194) 2023-03-22 14:32:49 +11:00
sequencer
split_common Remove old OLED API code (#21651) 2023-07-31 15:43:10 +01:00
unicode Unicode, Unicodemap and UCIS refactor (#21659) 2023-08-27 13:30:19 +10:00
wear_leveling
action.c Fix OSM on a OSL activated layer (#20410) 2023-09-25 12:53:12 +10:00
action.h [Core] Add Repeat Key ("repeat last key") as a core feature. (#19700) 2023-05-20 22:35:06 +10:00
action_code.h Relocate various modifier defines (#18638) 2023-03-10 18:27:29 -08:00
action_layer.c Remove use of keymap.h (#20004) 2023-03-27 20:08:17 +01:00
action_layer.h process_keycode: remove direct `quantum.h` includes (#21486) 2023-07-11 17:07:24 +10:00
action_tapping.c Improve test invocation, fix Retro Shift bugs, and add Auto+Retro Shift test cases (#15889) 2023-09-25 12:45:49 +10:00
action_tapping.h [Chore] Remove stray mod tap interrupt defines and per key functions (#20347) 2023-04-06 00:04:23 +01:00
action_util.c [Feature] Send a dummy keycode to neutralize flashing modifiers in retro tap and key overrides (#20992) 2023-07-08 00:18:02 +10:00
action_util.h [Feature] Send a dummy keycode to neutralize flashing modifiers in retro tap and key overrides (#20992) 2023-07-08 00:18:02 +10:00
basic_profiling.h Add basic profiler. (#20238) 2023-04-06 08:10:40 +10:00
bitwise.c
bitwise.h
caps_word.c
caps_word.h
color.c Clean up RGB LED type (#21859) 2023-09-04 01:19:59 +01:00
color.h Move `PACKED` define to util.h (#22074) 2023-09-20 07:33:54 +01:00
command.c Remove some use of keymap.h (#20006) 2023-03-03 17:50:40 +00:00
command.h
crc.c
crc.h
debounce.h debounce: remove direct `quantum.h` includes (#21480) 2023-07-09 02:05:20 +01:00
deferred_exec.c
deferred_exec.h
digitizer.c
digitizer.h Update Doxygen comments for some headers (#20194) 2023-03-22 14:32:49 +11:00
dip_switch.c
dip_switch.h
dynamic_keymap.c Fix compilation of dynamic_keymap.c without VIA (#21858) 2023-08-29 14:28:09 +01:00
dynamic_keymap.h
dynamic_macro.h
eeconfig.c Move velocikey to within rgblight (#22123) 2023-09-25 17:48:10 +01:00
eeconfig.h Move velocikey to within rgblight (#22123) 2023-09-25 17:48:10 +01:00
encoder.c quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
encoder.h quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
haptic.c Add full solenoid support on split keyboards (#21583) 2023-09-25 12:23:31 +10:00
haptic.h haptic: naming cleanups (#21551) 2023-07-21 09:17:39 +10:00
joystick.c
joystick.h Update Doxygen comments for some headers (#20194) 2023-03-22 14:32:49 +11:00
keyboard.c Move velocikey to within rgblight (#22123) 2023-09-25 17:48:10 +01:00
keyboard.h quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
keycode.h Relocate various modifier defines (#18638) 2023-03-10 18:27:29 -08:00
keycode_config.c bootmagic mods covering the case when swapped mods are pressed at the same time (#21320) (#21472) 2023-07-08 10:15:51 +10:00
keycode_config.h [Bug] Realign and size check EECONFIG structures (#20541) 2023-05-08 10:56:03 -07:00
keycodes.h [Core] Add Repeat Key ("repeat last key") as a core feature. (#19700) 2023-05-20 22:35:06 +10:00
keymap_common.c quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
keymap_common.h Remove use of keymap.h (#20004) 2023-03-27 20:08:17 +01:00
keymap_introspection.c Keymap introspection for combos. (#19670) 2023-05-15 22:27:37 +10:00
keymap_introspection.h Keymap introspection for combos. (#19670) 2023-05-15 22:27:37 +10:00
leader.c Refactor Leader key feature (#19632) 2023-02-13 03:19:02 +11:00
leader.h Update Doxygen comments for some headers (#20194) 2023-03-22 14:32:49 +11:00
led.c Get rid of `USB_LED_CAPS_LOCK` (#21436) 2023-07-06 09:48:02 +01:00
led.h Get rid of `USB_LED_CAPS_LOCK` (#21436) 2023-07-06 09:48:02 +01:00
led_tables.c
led_tables.h
main.c
matrix.c quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
matrix.h core: allow locking the matrix state (#18852) 2023-02-13 03:38:36 +11:00
matrix_common.c quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
modifiers.h Relocate various modifier defines (#18638) 2023-03-10 18:27:29 -08:00
mousekey.c Improve directional transition of overlapping mouse keys (#21494) 2023-09-25 12:25:24 +10:00
mousekey.h Add MOUSEKEY_WHEEL_DELTA documentation (#21493) 2023-07-10 10:57:08 -07:00
os_detection.c Make "detected_host_os()" available on the SLAVE side of the split keyboard (#19854) 2023-04-04 08:48:51 +10:00
os_detection.h Make "detected_host_os()" available on the SLAVE side of the split keyboard (#19854) 2023-04-04 08:48:51 +10:00
pointing_device_internal.h
programmable_button.c
programmable_button.h Update Doxygen comments for some headers (#20194) 2023-03-22 14:32:49 +11:00
quantum.c Move velocikey to within rgblight (#22123) 2023-09-25 17:48:10 +01:00
quantum.h Add `mousekey.h` include to `quantum.h` (#21897) 2023-09-04 03:14:14 +01:00
quantum_keycodes.h Unicodemap keycodes rename (#21092) 2023-06-01 17:25:08 +01:00
quantum_keycodes_legacy.h Unicode, Unicodemap and UCIS refactor (#21659) 2023-08-27 13:30:19 +10:00
raw_hid.h Raw HID: documentation improvements (#21596) 2023-07-25 09:20:41 +10:00
repeat_key.c quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
repeat_key.h quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
ring_buffer.h
secure.c
secure.h Update Doxygen comments for some headers (#20194) 2023-03-22 14:32:49 +11:00
sync_timer.c
sync_timer.h
tri_layer.c [Core] Tri Layer Keys (#19795) 2023-02-12 10:23:07 +11:00
tri_layer.h [Core] Tri Layer Keys (#19795) 2023-02-12 10:23:07 +11:00
util.h Move `PACKED` define to util.h (#22074) 2023-09-20 07:33:54 +01:00
variable_trace.c
variable_trace.h
via.c refactor: move default RGB/LED matrix #defines (#21938) 2023-09-28 11:51:18 +01:00
via.h quantum: remove direct `quantum.h` includes (#21507) 2023-07-16 23:42:56 +10:00
virtser.h
wpm.c
wpm.h