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 4d5705ea6c
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.
This commit is contained in:
parent
7d2d0c6795
commit
b382076ad1
6 changed files with 182 additions and 36 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue