This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void rotation() { | |
animDelay = mappedSpeed; | |
if (millis()-LastAnim >= animDelay) { | |
rot = rot + 1; | |
if (rot > NUM_LEDS - 1){rot = 0;} | |
fadeToBlackBy( leds, NUM_LEDS, 20); | |
LastAnim = millis(); | |
leds[rot] += CHSV(gHue, 255, outputBright); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//*************************************************************** | |
// This is Mark Kriegsman's FastLED DemoReel100 example with | |
// a modificaiton to use a button for changing patterns. The | |
// timer used for picking a new pattern has been commented out | |
// and there is a button check inside the main loop now. | |
// | |
// Search for "BUTTON STUFF" to find the various button releated | |
// code additions. | |
// | |
// Marc Miller, March 2017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Modified version of Jesus Climent's pole-320leds-aluminum code | |
#include <FastLED.h> | |
#include <EEPROM.h> | |
#include <Wire.h> | |
// How many leds in your strip? | |
#define NUM_LEDS 300 | |
const int8_t ledblock = 5; |