Skip to content

Instantly share code, notes, and snippets.

@ahmadx87
ahmadx87 / ColorWavesWithPalettes.ino
Created June 30, 2017 07:39 — forked from kriegsman/ColorWavesWithPalettes.ino
ColorWavesWithPalettes - demo of using cpt-city palettes in FastLED code
#include "FastLED.h"
// ColorWavesWithPalettes
// Animated shifting color waves, with several cross-fading color palettes.
// by Mark Kriegsman, August 2015
//
// Color palettes courtesy of cpt-city and its contributors:
// http://soliton.vm.bytemark.co.uk/pub/cpt-city/
//
// Color palettes converted for FastLED using "PaletteKnife" v1:
@ahmadx87
ahmadx87 / sinelon.ino
Created August 14, 2016 18:51 — forked from kriegsman/sinelon.ino
"sinelon" with no visual gaps at any speed or pixel count
// Updated sinelon (no visual gaps)
void sinelon()
{
// a colored dot sweeping
// back and forth, with
// fading trails
fadeToBlackBy( leds, NUM_LEDS, 20);
int pos = beatsin16(13,0,NUM_LEDS);
static int prevpos = 0;