Skip to content

Instantly share code, notes, and snippets.

@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_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_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_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_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_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_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_Special_Request_Red_White_and_Blue_using_CRGBSet.ino
Last active August 27, 2019 18:03
Special Request to fill NeoPixel strip with one third red, one third white and one third blue.
// special request - fill NeoPixel strip with one third red, one third white and one third blue.
// by Chemdoc77
//This was run on a Teensy 3.6 using the Arduino 1.8.3 and the Teensyduino 1.37
#include "FastLED.h"
#define NUM_LEDS 240
#define Data_Pin 6
#define chipset NEOPIXEL
@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.
/*****************************************************************************
This sketch is based on the following sketch from Adafruit but has been adapted to FastLED by Chemdoc77:
https://learn.adafruit.com/random-spooky-led-eyes/assembly?view=all
Random Eyes sketch for WS2801 pixels
W. Earl 10/16/11
For Adafruit Industries
Creates randomized pairs of WS2801 led pixels that look like eyes peering