From b5b2e62b1ae25733bec36dc7dfa8788a45e4d511 Mon Sep 17 00:00:00 2001 From: fruchti Date: Thu, 16 Jul 2020 18:43:40 +0200 Subject: [PATCH] Add order array to help with reassignment --- build-number.txt | 2 +- src/animation.c | 18 ++++++++++++++++++ src/animation.h | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/animation.c create mode 100644 src/animation.h diff --git a/build-number.txt b/build-number.txt index 95de1ee..a1f7f63 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -297 +298 diff --git a/src/animation.c b/src/animation.c new file mode 100644 index 0000000..fc3657f --- /dev/null +++ b/src/animation.c @@ -0,0 +1,18 @@ +#include "animation.h" +#include "led.h" + +const unsigned int Animation_LEDOrder[LED_COUNT] = +{ + // Red + 0, 1, 2, 3, 4, 5, + // Green + 6, 7, 8, 9, 10, 11, + // Blue + 12, 13, 14, 15, 16, 17, + // Yellow + 18, 19, 20, 21, 22, 23, + // Cyan + 24, 25, 26, 27, 28, 29, + // Fuchsia + 30, 31 +}; \ No newline at end of file diff --git a/src/animation.h b/src/animation.h new file mode 100644 index 0000000..7b9637e --- /dev/null +++ b/src/animation.h @@ -0,0 +1 @@ +#pragma once \ No newline at end of file