From aca9762fae0d800db411f07a4acdca2774fc9156 Mon Sep 17 00:00:00 2001 From: Jason Garland Date: Tue, 20 Oct 2015 22:55:17 -0700 Subject: [PATCH] added peace sign effect --- RGBShades.ino | 3 ++- effects.h | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/RGBShades.ino b/RGBShades.ino index 5583378..fa07cda 100644 --- a/RGBShades.ino +++ b/RGBShades.ino @@ -69,7 +69,8 @@ functionList effectList[] = {threeSine, scrollTextZero, sideRain, shadesOutline, - hearts}; + hearts, + peace}; // Timing parameters #define cycleTime 15000 diff --git a/effects.h b/effects.h index 6140c2a..bc8bb7d 100644 --- a/effects.h +++ b/effects.h @@ -388,4 +388,19 @@ void scrollTextOne() { void scrollTextTwo() { scrollText(2, NORMAL, CRGB::Green, CRGB(0,0,8)); -} \ No newline at end of file +} + +//Peace signs +const uint8_t Peace[] = {1, 2, 3, 28, 26, 24, 31, 33, 35, 56, 55, 53, 52, 59, 60, 61, + 10, 11, 12, 19, 17, 15, 38, 40, 42, 49, 48, 46, 45, 64, 65, 66}; +void peace() { + if (effectInit == false) { + effectInit = true; + effectDelay = 30; + FastLED.clear(); + } + for (int x = 0; x < 32; x++) { + leds[Peace[x]] = CHSV(cycleHue, 255, 255); + } +} +