From cb86e518bdfdf23049fd53916d0ef884fd376a2f Mon Sep 17 00:00:00 2001 From: Marcus Eliasson Date: Wed, 7 Jan 2015 15:39:04 +0100 Subject: [PATCH] Added green/red boat effect --- modules/src/neopixelring.c | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/modules/src/neopixelring.c b/modules/src/neopixelring.c index a120d3f216..36917672ea 100644 --- a/modules/src/neopixelring.c +++ b/modules/src/neopixelring.c @@ -163,6 +163,44 @@ static void solidColorEffect(uint8_t buffer[][3], bool reset) } } +static const uint8_t green[] = {0x00, 0xFF, 0x00}; +static const uint8_t red[] = {0xFF, 0x00, 0x00}; +static const uint8_t white[] = WHITE; +static const uint8_t part_black[] = BLACK; + +static void boatEffect(uint8_t buffer[][3], bool reset) +{ + int i; + + uint8_t reds[] = {1,2,3,4,5}; + uint8_t greens[] = {7,8,9,10,11}; + uint8_t whites[] = {0}; + uint8_t blacks[] = {6}; + + + for (i=0; i