Skip to content

Instantly share code, notes, and snippets.

//New Product Test Sketch by Chemdoc77
//used to test new RGB LED strips and Matrix that I purchase.
// 6/22/19 - updated to allow more than 255 LEDS.
#include <FastLED.h>
#define DATA_PIN 6
#define LED_TYPE NEOPIXEL
#define NUM_LEDS 8
@chemdoc77
chemdoc77 / CD77_Kriegsman_SmartMatrixSwirl_modified.ino
Created January 15, 2024 19:09
Kreigsman's SmartMatrixSwirl modified for WS2812B Matrix
// Kreigsman's SmartMatrixSwirl from https://gist.github.com/kriegsman/5adca44e14ad025e6d3b
// Modified for WS2812B Matrix by Chemdoc77
//#include <SmartMatrix.h>
#include <FastLED.h>
const uint8_t kMatrixWidth = 16;
const uint8_t kMatrixHeight = 16;
const uint8_t kBorderWidth = 2;
/*****************************************************************************
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
@chemdoc77
chemdoc77 / CRGBSet_Example_1
Created January 25, 2017 04:03
Testing FastLED's CRGBSet array function and using it in an array of CRGBSET arrays
// Testing the CRGBSet array function and using it in an array of CRGBSET arrays
//by Chemdoc77
#include "FastLED.h"
#define NUM_LEDS 24
#define Data_Pin 6
#define chipset NEOPIXEL
#define BRIGHTNESS 50
CRGB rawleds[NUM_LEDS];
@chemdoc77
chemdoc77 / CD77_meteor_shower.ino
Created October 11, 2019 00:19
Meteor Shower
/*
* Meteor Shower posted by Chemdoc77
* Based on the outstanding MeteorShower sketch by Jon Burroughs as seen in Adam bluebottleyellowboxyellyfish’s clock
* which Chemdoc77 slightly modified.
*/
#include <FastLED.h>
#define LED_PIN 6
@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
// Testing FastLED's CRGBSet array with a fill the whole array function and with a colorwipe function
// by Chemdoc77
#include "FastLED.h"
#define NUM_LEDS 24
#define Data_Pin 6
#define chipset NEOPIXEL
#define BRIGHTNESS 50
@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_FastLED_millis_replaces_delay.ino
Last active March 13, 2022 23:33
CD77_FastLED_millis_replaces_delay - Replaces delays with FastLED EVERY_N_MILLIS function
/* EVERY_N_MILLIS_I used to replace delay by Chemdoc77
Updated 20220313- replaced EVERY_N_MILLIS with EVERY_N_MILLIS_I
Note: When using the N_Millis FastLED function in a void funcition, you must use
EVERY_N_MILLIS_I and NOT EVERY_N_MILLIS.
*/
#include "FastLED.h"
#define NUM_LEDS 24
#define DATA_PIN 6
#define LED_TYPE NEOPIXEL
@chemdoc77
chemdoc77 / CD77_Palette_slow_fade_to_diff_colors.ino
Last active December 31, 2021 03:09
Using Palettes to slow fade to different colors
// This sketch by Chemdoc77 is based on Mark Kriegsman's PaletteCrossfade.ino
// It uses palettes to slow fade to different colors.
// at: https://gist.github.com/kriegsman/1f7ccbbfa492a73c015e
#include <FastLED.h>
#define LED_PIN 6
#define NUM_LEDS 24