Skip to content

Instantly share code, notes, and snippets.

@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
@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_step_project_examples_with_CRGBSet.ino
Last active May 23, 2022 01:10
Step Project Examples with CRGBSet Arrays
// Step Project Array Code Example
// by Chemdoc77
#include "FastLED.h"
#define NUM_LEDS 390
#define Data_Pin 6
#define chipset NEOPIXEL
#define BRIGHTNESS 50
// CRGBSET Stuff
@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 / CD77_police_light_one_Button_Color_Change.ino
Created January 30, 2019 17:26
The following sketch contains various functions based on the CD77_Police_Lights_One functions, from my original sketch in GitHub, CD77_police_lights. It includes color change by button.
// Police_Lights_One with Button Color Control by Chemdoc77
// Includes new functions for various number of pixels that are on in a group and for forward and reverse directions along with the ability to change colors with a button.
// ******** Version 20190130 *************
/* 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
@chemdoc77
chemdoc77 / CD77_police_light_one_auto_color_change.ino
Last active February 4, 2019 11:40
The following sketch contains various functions based on the CD77_Police_Lights_One functions, from my original sketch in GitHub, CD77_police_lights. It includes automatic color change.
/* CD77_police_light_one_auto_color_change by Chemdoc77
Includes new functions for various number of pixels that are on in a group and for forward and reverse directions.
Includes automatic color change with seconds input. See line 42 for this variable.
******** Version 20190203 *************
This code is based on the police_lightsONE and police_lightsALL code:
in Funkboxing by Teldredge at:
@chemdoc77
chemdoc77 / CD77_CHSV_Color_Array_Example.ino
Created May 17, 2019 02:51
CHSV Color Array Example
// CHSV Color Array Example by Chemdoc77
#include <FastLED.h>
#define LED_PIN 6
#define CHIPSET NEOPIXEL
#define NUM_LEDS 24