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
#include "FastLED.h" // FastLED library. | |
#if FASTLED_VERSION < 3001000 | |
#error "Requires FastLED 3.1 or later; check github for latest code." | |
#endif | |
// Fixed definitions cannot change on the fly. | |
#define LED_DT 12 // Data pin to connect to the strip. | |
#define LED_CK 11 // Clock pin for WS2801 or APA102. | |
#define COLOR_ORDER BGR // It's GRB for WS2812 and BGR for APA102. |
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
/* Time_Sawtooth | |
* | |
* By: Andrew Tuline | |
* | |
* Date: February, 2018 | |
* | |
* Creating a sawtooth pattern using millis and bpm. | |
* | |
* | |
*/ |
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
/* Simple dot | |
* | |
* By: Andrew Tuline | |
* | |
* Date: July, 2015 | |
* | |
* Similar to dots by John Burroughs, but uses the FastLED beatsin8() function instead. | |
* | |
*/ |
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
/* Anmimation speed test program for FastLED. | |
* | |
* By: Andrew Tuline | |
* | |
* Date: October, 2017 | |
* | |
* Problem: | |
* | |
* When you write a display routine, the performance of that routine may change as you add other elements to your program. How do we keep that display consistent? | |
* |
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
/* fire2012withhuepalettes | |
By: Mark Kriegsman | |
Modified by: Andrew Tuline | |
Date: July, 2015 | |
This is fire2012withpalette that's been modifed to create hue based fire palettes. |
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
/* inoise8_mover_array | |
* | |
* By: Andrew Tuline | |
* | |
* Date: March, 2017 | |
* | |
* We've used sine waves and counting to move pixels around a strand. In this case, I'm using FastLED Noise to move an array of pixels up and down the strand. | |
* | |
* The advantage is that it provides random natural movement without requiring lots of fancy math. | |
* |
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
/* soundmems_wave | |
* | |
* By: Andrew Tuline | |
* | |
* Wave adapted from: Stefan Petrick | |
* | |
* Date: February, 2017 | |
* | |
* Basic code to read from the Sparkfun INMP401 microphone, and create waves based on sampled input. |
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
/* lightsaber | |
* | |
* By: Andrew Tuline | |
* | |
* Start up a light saber and watch it shimmer slightly. | |
* | |
* Date: January, 2017 | |
* | |
* To do: | |
* |
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
/* Title: inoise8_fire.ino | |
* | |
* By: Andrew Tuline | |
* | |
* Date: January 2017 | |
* | |
* This super short sketch displays fire thanks to FastLED's Perlin Noise function and Palettes. | |
* | |
* It needs some tweaking in order to work across a wide range of NUM_LED values, but looks pretty good at 60. | |
* |
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
/* Arduino UNO with 3x3 LED Array using row column scanning with PWM and only using built in ports. | |
* | |
* Author: Andrew Tuline | |
* | |
* Date: July 14, 2012 | |
* | |
* This does not use any 3rd party chips, thus easy to use in a Lilypad. | |
* | |
* Uses synchronized PWM to support LED brightness. | |
* |