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 / RGBW_gamma
Created April 18, 2019 15:55
FastLED RGBW with gamma correction and Perlin noise
/* FastLED RGBW with gamma correction over Perlin Noise
*
* By: Andrew Tuline
*
* Date: March, 2019
*
* Example sketch using FastLED for RGBW strips (SK6812) along with gamma correction.
*
* The RGBW component was written by David Madison and originally by Jim Bumgardner.
*/
@atuline
atuline / basicfadein.ino
Last active May 9, 2021 13:20
Basic Fade In/Out
/*
* File: basicfadein
*
* By: Andrew Tuline
*
* Date: April, 2019
*
* Based previous work (namely twinklefox) by Mark Kriegsman, this program shows how you can fade-in twinkles by using the fact that a random number generator
* with the same seed will generate the same numbers every time. Combine that with millis and a sine wave and you have twinkles fading in/out.
*
@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.
@atuline
atuline / gamma_correction.ino
Last active June 22, 2019 21:57
gamma_correction
/* gamma_correction
*
* By: Andrew Tuline
*
* Date: January, 2019
*
* Testing gamma correction to change LED brightness so that it appears to change evenly for the viewer. The problem is that changes above
* 50 are much less noticeable for the viewer, so the LED gets bright quickly and then stays bright for way too long before dimming again.
*
* There's a few ways to adjust LED output. The table method was proposed on Adafruit.com. Here's a couple of other methods for demonstration.
/* sinelon_pixels
*
* Moves a single sine wave back and forth (or continuously) using waves.
*
*
* By: Andrew Tuline
*
* Date: January 2019
*
* This uses the built in FastLED beatsin8 combined with a sinewave to move one or more pixels back and forth.
/* inoise8_car
*
* By: Andrew Tuline
*
* Date: July, 2018
*
* A simple 8 bit routine that moves along a NOISE plane.
*
* This uses a fixed palette.
*
/* File: FFT_Peak
*
* By: Andrew Tuline
*
* Modified from:
*
* Date: May, 2019
*
* Use WEMOS D1 Mini and Sparkfun MEMS microphone.
*
/*
A blending variant
By: Andrew Tuline
Date: March, 2019
*/
#include "FastLED.h"
#define LED_PIN 12
#define CK_PIN 11
@atuline
atuline / ripples.ino
Last active February 10, 2019 19:57
Ripples for FastLED
/*
* Ripples
*
* Originally by: Reko Meriö
*
* Highly modified by: Andrew Tuline
*
* Date: February, 2019
*
* Another ripple routine, that now supports simultaneous ripples via a structure.
/* rainbow_center
By: Andrew Tuline
Date: Jan, 2018
Description
Rainbow marching from the center to the ends of the strand using the fill_rainbow routine.