Skip to content

Instantly share code, notes, and snippets.

Avatar
🎸
Working on sound reactive WLED

Andrew Tuline atuline

🎸
Working on sound reactive WLED
View GitHub Profile
@atuline
atuline / increasing_brightness.ino
Last active Apr 24, 2018
Increasing brightness
View increasing_brightness.ino
#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.
@atuline
atuline / time_sawtooth.ino
Last active Apr 24, 2018
Time_Sawtooth
View time_sawtooth.ino
/* Time_Sawtooth
*
* By: Andrew Tuline
*
* Date: February, 2018
*
* Creating a sawtooth pattern using millis and bpm.
*
*
*/
View dot_beat.ino
/* Simple dot
*
* By: Andrew Tuline
*
* Date: July, 2015
*
* Similar to dots by John Burroughs, but uses the FastLED beatsin8() function instead.
*
*/
View inoise8_fire.ino
/* 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.
*
View lightsaber.ino
/* lightsaber
*
* By: Andrew Tuline
*
* Start up a light saber and watch it shimmer slightly.
*
* Date: January, 2017
*
* To do:
*
@atuline
atuline / Fire2012WithAllPalettes
Created Sep 11, 2017
Mark Kriegsman's Fire2012WithPalettes has been modified to support multiple HSV's.
View Fire2012WithAllPalettes
/* fire2012withhuepalettes
By: Mark Kriegsman
Modified by: Andrew Tuline
Date: July, 2015
This is fire2012withpalette that's been modifed to create hue based fire palettes.
View fixedspeedtest.ino
/* 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?
*
View 3x3 Row Column Scan
/* 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.
*
View mycircle.ino
/* mycircle
*
* By: Andrew Tuline
*
* Date: May, 2018
*
* Connect your LED's end to end and this routine goes round and round.
*
* There are 2 methods for timing:
*
View fill_gradient
// Just a snippet from FastLED. This is not a complete program.
//FORWARD_HUES, BACKWARD_HUES, SHORTEST_HUES, LONGEST_HUES
fill_gradient(leds, startpos, CHSV(50, 255,255) , endpos, CHSV(150,255,255), SHORTEST_HUES);
fill_gradient(leds, NUM_LEDS, CHSV(50, 255,255), CHSV(100,255,255), LONGEST_HUES);