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 / 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.
*
*
*/
@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.
/* 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:
*
/* simplemover
*
* By: A simple routine to move every 4th LED up the strip and fade behind.
*
* No delay statements were harmed in the creation of this routine.
*
* By: Andrew Tuline
*
* Date: June 11, 2018
*
/* inoise8_car
*
* By: Andrew Tuline
*
* Date: July, 2018
*
* A simple 8 bit routine that moves along a NOISE plane.
*
* This uses a fixed palette.
*
@atuline
atuline / fillpal.ino
Last active October 22, 2018 21:45
A fill color along with single colours
// https://plus.google.com/u/0/107012178390358476390/posts/DYRrA1iH5j5?cfem=1
#include <FastLED.h>
#define LED_PIN 12
#define CLK_PIN 11
#define NUM_LEDS 60
#define BRIGHTNESS 150
#define LED_TYPE APA102
// 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);
/* fill_grad
*
* By: Andrew Tuline
*
* Date: August, 2015
*
* Here's a simple method to blend between a couple of colours across a strand of LED's.
*
* It uses FastLED's:
*
/* palette_basic
*
* By: Andrew Tuline
*
* Date: October, 2018
*
* Basic Palette Usage
*
*/
@atuline
atuline / sinelon_pixels
Created January 25, 2019 20:36
Sinelon with multiple list pixels
/* sinelon_pixels
*
* Moves multiple pixels back and forth using waves of one form or another.
*
*
* By: Mark Kriegsman
*
* Modified by: Andrew Tuline
*
* Date: January 2018