aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-06-04 13:04:30 -0500
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-06-04 11:04:30 -0700
commite7711b3b665c7df0a2a1d7272580cc01be28590d (patch)
tree7077e62abc3eb3fb3524092c1acabd164a8ae50c /keyboards
parent661a9154ae8178c39f244c687f6e298c11561d08 (diff)
downloadfirmware-e7711b3b665c7df0a2a1d7272580cc01be28590d.tar.gz
firmware-e7711b3b665c7df0a2a1d7272580cc01be28590d.tar.bz2
firmware-e7711b3b665c7df0a2a1d7272580cc01be28590d.zip
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
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/cannonkeys/bluepill/ws2812.h2
-rw-r--r--keyboards/cannonkeys/stm32f072/ws2812.h3
-rw-r--r--keyboards/handwired/promethium/rgbsps.c2
-rw-r--r--keyboards/mxss/rgblight.h2
4 files changed, 4 insertions, 5 deletions
diff --git a/keyboards/cannonkeys/bluepill/ws2812.h b/keyboards/cannonkeys/bluepill/ws2812.h
index 3b61ddcfa..be37df766 100644
--- a/keyboards/cannonkeys/bluepill/ws2812.h
+++ b/keyboards/cannonkeys/bluepill/ws2812.h
@@ -1,7 +1,7 @@
#pragma once
#include "hal.h"
-#include "rgblight_types.h"
+#include "color.h"
void set_leds_color_rgb(LED_TYPE color);
diff --git a/keyboards/cannonkeys/stm32f072/ws2812.h b/keyboards/cannonkeys/stm32f072/ws2812.h
index 3b61ddcfa..9b545fcd5 100644
--- a/keyboards/cannonkeys/stm32f072/ws2812.h
+++ b/keyboards/cannonkeys/stm32f072/ws2812.h
@@ -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);
diff --git a/keyboards/handwired/promethium/rgbsps.c b/keyboards/handwired/promethium/rgbsps.c
index 84fac1ae1..f43987691 100644
--- a/keyboards/handwired/promethium/rgbsps.c
+++ b/keyboards/handwired/promethium/rgbsps.c
@@ -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;
diff --git a/keyboards/mxss/rgblight.h b/keyboards/mxss/rgblight.h
index 5205974f9..0013a3438 100644
--- a/keyboards/mxss/rgblight.h
+++ b/keyboards/mxss/rgblight.h
@@ -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];