From 659fdb9004f6303c3b371ebb7d54cf97dff862c4 Mon Sep 17 00:00:00 2001 From: fruchti Date: Thu, 16 Jul 2020 20:44:57 +0200 Subject: [PATCH] Add LED order --- build-number.txt | 2 +- src/animation.c | 16 +++------------- src/animation.h | 6 +++++- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/build-number.txt b/build-number.txt index a1f7f63..54ea97e 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -298 +310 diff --git a/src/animation.c b/src/animation.c index fc3657f..a97e30d 100644 --- a/src/animation.c +++ b/src/animation.c @@ -1,18 +1,8 @@ #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 + 19, 27, 21, 13, 0, 4, 24, 8, 12, 15, 6, 5, 28, + 29, 17, 3, 18, 26, 22, 10, 16, 20, 30, 1, + 25, 2, 14, 31, 7, 11, 9, 23 }; \ No newline at end of file diff --git a/src/animation.h b/src/animation.h index 7b9637e..e3f28fc 100644 --- a/src/animation.h +++ b/src/animation.h @@ -1 +1,5 @@ -#pragma once \ No newline at end of file +#pragma once + +#include "led.h" + +extern const unsigned int Animation_LEDOrder[LED_COUNT];