mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-05-09 15:28:21 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
cd79715b77
@ -122,7 +122,7 @@ void apa102_init(void) {
|
||||
gpio_set_pin_output(APA102_CI_PIN);
|
||||
}
|
||||
|
||||
void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue) {
|
||||
void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
|
||||
apa102_leds[index].r = red;
|
||||
apa102_leds[index].g = green;
|
||||
apa102_leds[index].b = blue;
|
||||
|
@ -32,7 +32,7 @@
|
||||
#define APA102_MAX_BRIGHTNESS 31
|
||||
|
||||
void apa102_init(void);
|
||||
void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue);
|
||||
void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue);
|
||||
void apa102_set_color_all(uint8_t red, uint8_t green, uint8_t blue);
|
||||
void apa102_flush(void);
|
||||
|
||||
|
@ -16,7 +16,10 @@
|
||||
|
||||
bool process_underglow(uint16_t keycode, keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
uint8_t shifted = get_mods() & MOD_MASK_SHIFT;
|
||||
#if defined(RGBLIGHT_ENABLE) || (defined(RGB_MATRIX_ENABLE) && !defined(RGB_MATRIX_DISABLE_SHARED_KEYCODES))
|
||||
const uint8_t shifted = get_mods() & MOD_MASK_SHIFT;
|
||||
#endif
|
||||
|
||||
switch (keycode) {
|
||||
case QK_UNDERGLOW_TOGGLE:
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
|
Loading…
Reference in New Issue
Block a user