keychron_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
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_code.h
action_layer.c
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
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
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
basic_profiling.h
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
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
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
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_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
keycode.h
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
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
leader.h
led_tables.c
led_tables.h
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
main.c
matrix_common.c quantum: remove direct quantum.h includes (#21507) 2023-07-16 23:42:56 +10:00
matrix.c quantum: remove direct quantum.h includes (#21507) 2023-07-16 23:42:56 +10:00
matrix.h
modifiers.h
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
os_detection.h
pointing_device_internal.h
programmable_button.c
programmable_button.h
quantum_keycodes_legacy.h Unicode, Unicodemap and UCIS refactor (#21659) 2023-08-27 13:30:19 +10:00
quantum_keycodes.h Unicodemap keycodes rename (#21092) 2023-06-01 17:25:08 +01: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
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
sync_timer.c
sync_timer.h
tri_layer.c
tri_layer.h
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