forked from mirrors/qmk_userspace
Moving rgb typedefs into a single location (#5978)
Because someone named the define poorly Using full relative path as handwired/promethium has a color.h file
This commit is contained in:
parent
661a9154ae
commit
e7711b3b66
9 changed files with 28 additions and 58 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "hal.h"
|
||||
#include "rgblight_types.h"
|
||||
#include "color.h"
|
||||
|
||||
|
||||
void set_leds_color_rgb(LED_TYPE color);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "hal.h"
|
||||
#include "rgblight_types.h"
|
||||
|
||||
#include "color.h"
|
||||
|
||||
void set_leds_color_rgb(LED_TYPE color);
|
||||
void set_led_color_rgb(LED_TYPE color, int pos);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#include "ws2812.h"
|
||||
#include "rgbsps.h"
|
||||
|
||||
struct cRGB led[RGBSPS_NUM];
|
||||
cRGB led[RGBSPS_NUM];
|
||||
|
||||
void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b) {
|
||||
led[index].r = r;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
#ifndef RGBLIGHT_CUSTOM_DRIVER
|
||||
#include "ws2812.h"
|
||||
#endif
|
||||
#include "rgblight_types.h"
|
||||
#include "color.h"
|
||||
#include "rgblight_list.h"
|
||||
|
||||
extern LED_TYPE led[RGBLED_NUM];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue