aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/model01/leds.h
diff options
context:
space:
mode:
authorGravatar James Laird-Wah <james@laird-wah.net>2018-09-28 13:53:36 +1000
committerGravatar Drashna Jaelre <drashna@live.com>2018-09-27 20:53:36 -0700
commitb382076ad1a6d857b6f185077b5f3635801b4ad6 (patch)
tree3c036d86511f3fff0f82b9901dd29334615ec7ef /keyboards/model01/leds.h
parent7d2d0c6795eaaa87d4e13fc159807b64ca2d71f9 (diff)
downloadqmk_firmware-b382076ad1a6d857b6f185077b5f3635801b4ad6.tar.gz
Keyboard: keyboardio model01: rgbmatrix support (#3989)
* model01: implement RGB matrix feature LEDs can still be individually controlled if this is switched off. * model01: use fast banked LED setting commands * model01: update default keymap to use RGB matrix * model01: update RGB matrix support to match common_features.mk * rgb_matrix: include <string.h> This was missing after commit 4d5705ea6ceeb11cd2adc018644ec87c51af4e86 which introduces a use of memset(). * model01: make g_rgb_leds weak This allows users to override which LEDs are configured as modifiers, or tweak the x/y coordinates, should they so choose.
Diffstat (limited to 'keyboards/model01/leds.h')
-rw-r--r--keyboards/model01/leds.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/keyboards/model01/leds.h b/keyboards/model01/leds.h
index 0aac781dd..405bdf328 100644
--- a/keyboards/model01/leds.h
+++ b/keyboards/model01/leds.h
@@ -16,10 +16,7 @@
#pragma once
#include <quantum.h>
+#include <rgb_matrix.h>
-int set_all_leds_to(uint8_t r, uint8_t g, uint8_t b);
-int set_led_to(uint8_t led, uint8_t r, uint8_t g, uint8_t b);
-
-/* Raw (gamma uncorrected) LED values */
-int set_all_leds_to_raw(uint8_t r, uint8_t g, uint8_t b);
-int set_led_to_raw(uint8_t led, uint8_t r, uint8_t g, uint8_t b);
+void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b);
+void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b);