Add convenience method for setting Nibble's big LED RGB (#11257)
parent
12568fb5a9
commit
e85d904fe1
|
@ -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:
|
||||
|
|
|
@ -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);
|
Loading…
Reference in New Issue