Skip to content

Instantly share code, notes, and snippets.

//Fire2012WithPalette
// by Mark Kriegsman of FastLED Mark Kriegsman
//modified by Chemdoc77 to work equally on each half of a ring
// Note: for this sketch - pixel 0 of the ring is the top pixel on the ring
#include <FastLED.h>
#define LED_PIN 6
#define COLOR_ORDER GRB
@chemdoc77
chemdoc77 / Faux_TV_Kriegsman_DotStar.ino
Last active March 26, 2017 14:02
Faux TV for DotStar Matrix
//Faux TV by Mark Kriegsman
//http://pastebin.com/RQCPVyXf
//https://plus.google.com/112916219338292742137/posts/Xg76A57iXV6
//Changed to APA102, i.e. DotStar by Chemdoc77
#include <FastLED.h>
#define LED_PIN 3
#define CLOCK_PIN 4
@chemdoc77
chemdoc77 / CD77_fastled__sinelon_oneway.ino
Last active January 10, 2018 22:27
FastLED Sinelon_oneway - creates a dot that goes only forward with a tail.
// FastLED Sinelon_oneway by Chemdoc77
// Based on the DemoReel100 example of the FastLED library.
// a dot that goes only forward with a tail.
#include "FastLED.h"
#define NUM_LEDS 100
#define chipset NEOPIXEL
#define Data_pin 6
#define BRIGHTEST 40 // the BRIGHTEST range is from 0 to 255.
@chemdoc77
chemdoc77 / CD77_Set_Differnet_Brightness_Levels_in_a_Ring.ino
Last active July 17, 2018 13:57
Setting different brightness levels in a ring by Chemdoc77
//Setting different brightness levels in a ring by Chemdoc77
//used to having a group of choosen leds brighter than the rest of the leds in a ring or strip.
#include <FastLED.h>
#define DATA_PIN 6
#define LED_TYPE NEOPIXEL
#define NUM_LEDS 24
CRGB leds[NUM_LEDS];
@chemdoc77
chemdoc77 / CD77_Candle_Effect.ino
Created August 31, 2018 23:23
Candle Effect for NeoPixel Jewel
//Candle Effect for a NeoPixel Jewel by Chemdoc77
/* This sketch is based on:
* Code from Christopher Smolinski:
*
* https://plus.google.com/+ChristopherSmolinski/posts/a8bEKwtYhjQ
*
* which is based on code from Mark Kriegsman:
*
* https://gist.github.com/kriegsman/5408ecd397744ba0393e
@chemdoc77
chemdoc77 / CD77_Pride2015_for_NeoPixels.ino
Created September 1, 2018 00:04
Mark Kriegsman's Pride2015 for NeoPixels
#include "FastLED.h"
// Pride2015
// Animated, ever-changing rainbows.
// by Mark Kriegsman
//https://gist.github.com/kriegsman/964de772d64c502760e5
//Modified for NeoPixels by Chemdoc77
@chemdoc77
chemdoc77 / CD77_Basic_FastLED_Animations.ino
Created October 30, 2018 01:13
Some basic FastLED animations by Chemdoc77
//Basic FastLED Aminations by Chemdoc77
#include <FastLED.h>
#define DATA_PIN 6
#define LED_TYPE NEOPIXEL
#define NUM_LEDS 24
CRGB leds[NUM_LEDS];
int brightness = 100;
@chemdoc77
chemdoc77 / CD77_Teensy_NeoPixel_IR_Control_Problem.ino
Last active November 29, 2018 01:49
Basic IR Remote with NeoPixels and Teensy 3.1 Test Sketch by Chemdoc77 Note: Problem occurs when first button push give garbage number and second button push works.
/*
Basic IR Remote with NeoPixels Test Sketch by Chemdoc77
Note: Problem occurs when first button push give garbage number and second button push works.
*/
#define FASTLED_ALLOW_INTERRUPTS 0
#include <FastLED.h>
#include <IRremote.h>
@chemdoc77
chemdoc77 / CRGBSet_Example_2_with_solidfill_and_rainbowfill
Created January 25, 2017 04:19
Testing FastLED's CRGBSet array function and using it with the fill_solid and fill_rainbow functions.
// Testing FastLED's CRGBSet array function and using it with the fill_solid and fill_rainbow functions.
// by Chemdoc77
#include "FastLED.h"
#define NUM_LEDS 24
#define Data_Pin 6
#define chipset NEOPIXEL
#define BRIGHTNESS 50
@chemdoc77
chemdoc77 / CD77_police_light_one.ino
Last active January 27, 2019 14:29
The following sketch contains various functions based on the CD77_Police_Lights_One functions, from my original sketch in GitHub, CD77_police_lights.
// Police_Lights_One Modifed by Chemdoc77
// Includes new functions for various number of pixels that are on in a group and for forward and reverse directions.
// ******** Version 20190126 *************
/* This code is based on the police_lightsONE and police_lightsALL code:
in Funkboxing by Teldredge at:
http://funkboxing.com/wordpress/wp-content/_postfiles/sk_qLEDFX_POST.ino