diff options
author | Nick Krichevsky <njk828@gmail.com> | 2020-12-29 18:23:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 23:23:50 +0000 |
commit | e85d904fe18b09cc6b001424824eebfb0361ebfe (patch) | |
tree | 510a9099dc19ed9c6b72b7e56a444f7155144bfb /keyboards | |
parent | 12568fb5a9167d29a52f79c739f11830bde3e4be (diff) | |
download | qmk_firmware-e85d904fe18b09cc6b001424824eebfb0361ebfe.tar.gz qmk_firmware-e85d904fe18b09cc6b001424824eebfb0361ebfe.zip |
Add convenience method for setting Nibble's big LED RGB (#11257)
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/nullbitsco/nibble/big_led.c | 8 | ||||
-rw-r--r-- | keyboards/nullbitsco/nibble/big_led.h | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/keyboards/nullbitsco/nibble/big_led.c b/keyboards/nullbitsco/nibble/big_led.c index eb0d0a5071..9fd06a5de1 100644 --- a/keyboards/nullbitsco/nibble/big_led.c +++ b/keyboards/nullbitsco/nibble/big_led.c @@ -15,6 +15,12 @@ */ #include "big_led.h" +void set_big_LED_rgb(uint8_t r_mode, uint8_t g_mode, uint8_t b_mode) { + set_big_LED_r(r_mode); + set_big_LED_g(g_mode); + set_big_LED_b(b_mode); +} + void set_big_LED_r(uint8_t mode) { switch(mode) { case LED_ON: @@ -64,4 +70,4 @@ void set_big_LED_b(uint8_t mode) { default: break; } -}
\ No newline at end of file +} diff --git a/keyboards/nullbitsco/nibble/big_led.h b/keyboards/nullbitsco/nibble/big_led.h index 113aaaf106..b4b0650787 100644 --- a/keyboards/nullbitsco/nibble/big_led.h +++ b/keyboards/nullbitsco/nibble/big_led.h @@ -15,7 +15,7 @@ */ #pragma once -#include "quantum.h" +#include "quantum.h" /* Optional big LED pins */ #define BIG_LED_R_PIN D7 @@ -29,6 +29,7 @@ #define GPIO_STATE_HIGH 1 void + set_big_LED_rgb(uint8_t r_mode, uint8_t g_mode, uint8_t b_mode), set_big_LED_r(uint8_t mode), set_big_LED_g(uint8_t mode), - set_big_LED_b(uint8_t mode);
\ No newline at end of file + set_big_LED_b(uint8_t mode); |