From 11ac0494d537c7fe1f436a6a5cba502a20578ba0 Mon Sep 17 00:00:00 2001 From: hhau Date: Tue, 5 Dec 2023 23:59:39 +0100 Subject: [PATCH] chg: dev: added colorconstants --- src/multiColorLight/ColorConstants.h | 9 +++++++++ src/multiColorLight/MultiColorLight.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/multiColorLight/ColorConstants.h diff --git a/src/multiColorLight/ColorConstants.h b/src/multiColorLight/ColorConstants.h new file mode 100644 index 0000000..f180f5e --- /dev/null +++ b/src/multiColorLight/ColorConstants.h @@ -0,0 +1,9 @@ +static const uint32_t RED = 0xFF0000; +static const uint32_t GREEN = 0x00FF00; +static const uint32_t BLUE = 0x0000FF; +static const uint32_t WHITE = 0xFFFFFF; +static const uint32_t ORANGE = 0x961E00; +static const uint32_t YELLOW = 0x965000; +static const uint32_t TURQUOISE = 0x005064; +static const uint32_t PURPEL = 0x320064; +static const uint32_t PINK = 0x960064; diff --git a/src/multiColorLight/MultiColorLight.h b/src/multiColorLight/MultiColorLight.h index 6a8580d..ecfcadb 100644 --- a/src/multiColorLight/MultiColorLight.h +++ b/src/multiColorLight/MultiColorLight.h @@ -11,7 +11,7 @@ #ifndef MultiColorLight_h #define MultiColorLight_h #include - +#include "ColorConstants.h" /** * @brief Describes combinations of leds on the Dezibot. * With the Robot in Front of you, if you can read the Dezibotlogo, the LED left from the Logo is TOP_LEFT