Skip to content

Instantly share code, notes, and snippets.

@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;
@chemdoc77
chemdoc77 / CD77__special_request_changing_colors_after_long_period_of_time.ino
Created July 19, 2020 22:02
CD77 Special Request for Changing Colors After a Long Period_of Time
/* This sketch by Chemdoc77 is a special request for changing colors after a long period of time.
It is based on Mark Kriegsman's PaletteCrossfade.ino and his PerformanceTime code at;
https://gist.github.com/kriegsman/1f7ccbbfa492a73c015e
and
https://gist.github.com/kriegsman/a916be18d32ec675fea8
*/
#include <FastLED.h>
#define LED_PIN 6
@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_new_product_test__Teensy4.ino
Last active July 11, 2021 10:29
FastLED and Teensy 4.0 Parallel Output Procedure
/* New Product Test Sketch by Chemdoc77
used to test new RGB LED strips and Matrix that I purchase.
Note: Uses FastLED's Parallel Output procedure to work with a Teensy 4.0
*/
#include <FastLED.h>
#define DATA_PIN 7 // it is critical that you use this pin number or other pin numbers using FastLED's Parallel Output procedure
@chemdoc77
chemdoc77 / CD77_basic_half_ring_animations.ino
Last active December 20, 2019 17:23
Basic FastLED Aminations for a ring and for half a ring by Chemdoc77
// Basic FastLED Aminations for a ring and for half a ring by Chemdoc77
// This will work on a strip, too.
#include <FastLED.h>
#define DATA_PIN 6
#define LED_TYPE NEOPIXEL
#define NUM_LEDS 24
CRGB leds[NUM_LEDS];
int brightness = 30;
@chemdoc77
chemdoc77 / CD77_Fire2012WithPalette_for_two_halves_of_ring.ino
Last active February 4, 2020 03:00
Fire2012 With Palette for two halves of a ring by Chemdoc77
//Fire2012 with Palette for two halves of a ring or strip by Chemdoc77
// Modified version of Fire2012withPalette by Mark Kriegsman at:
// https://github.com/FastLED/FastLED/blob/master/examples/Fire2012WithPalette/Fire2012WithPalette.ino
/* ===== Note ==========
Change line 83 to pick color of the flame
Change lines 129 and 134 to adjust the flame.
*/
@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
@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
@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_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