Skip to content

Instantly share code, notes, and snippets.

View atuline's full-sized avatar
🎸
Working on sound reactive WLED

Andrew Tuline atuline

🎸
Working on sound reactive WLED
View GitHub Profile
@atuline
atuline / increasing_brightness.ino
Last active April 24, 2018 08:51
Increasing brightness
#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 April 24, 2018 08:51
Time_Sawtooth
/* Time_Sawtooth
*
* By: Andrew Tuline
*
* Date: February, 2018
*
* Creating a sawtooth pattern using millis and bpm.
*
*
*/
/* Simple dot
*
* By: Andrew Tuline
*
* Date: July, 2015
*
* Similar to dots by John Burroughs, but uses the FastLED beatsin8() function instead.
*
*/
/* 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?
*
@atuline
atuline / Fire2012WithAllPalettes
Created September 11, 2017 23:39
Mark Kriegsman's Fire2012WithPalettes has been modified to support multiple HSV's.
/* fire2012withhuepalettes
By: Mark Kriegsman
Modified by: Andrew Tuline
Date: July, 2015
This is fire2012withpalette that's been modifed to create hue based fire palettes.
@atuline
atuline / inoise8_mover_array
Last active October 1, 2023 07:44
Using FastLED noise function to move pixels.
/* 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.
*
@atuline
atuline / soundmems_wave
Created February 16, 2017 00:06
Create a light wave along an LED strip from basic sampled sound input.
/* 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.
/* lightsaber
*
* By: Andrew Tuline
*
* Start up a light saber and watch it shimmer slightly.
*
* Date: January, 2017
*
* To do:
*
/* 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.
*
/* 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.
*