Skip to content

Instantly share code, notes, and snippets.

Mark Kriegsman kriegsman

  • Boston
Block or report user

Report or block kriegsman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ClearWayQA ReadMe.txt
ClearWayQA Plug-In PPC v2.1a5 Read Me
6/18/98
"ClearWayQA" is a tool for finding, isolating, and recording two
specific kinds of bugs in other WebSTAR plug-ins: memory bugs, and
PowerPC processor exceptions.
ClearWayQA finds many kinds of memory bugs that other plug-ins may have,
such as double-deletes, uninitialized variables, buffer and array
overruns, etc.
@kriegsman
kriegsman / CircusMarquee.ino
Created Apr 20, 2018
CircusMarquee - marquee lights as found around the edge of a circus, carnival, or theatre sign
View CircusMarquee.ino
#include "FastLED.h"
// Lights that chase around the outside of a sign, as found
// at carnivals, circuses, and theatres.
#define NUM_LEDS 35
#define LED_TYPE WS2811
#define COLOR_ORDER RGB
#define DATA_PIN 3
View Teensy30asm.txt
PaulTeensyLCPaletteBugTest.ino.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <_VectorsFlash>:
0: 00 20 00 20 f9 00 00 00 59 15 00 00 25 15 00 00 . . ....Y...%...
10: 25 15 00 00 25 15 00 00 25 15 00 00 25 15 00 00 %...%...%...%...
20: 25 15 00 00 25 15 00 00 25 15 00 00 59 15 00 00 %...%...%...Y...
View TeensyLCasm.txt
PaulTeensyLCPaletteBugTest.ino.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <_VectorsFlash>:
0: 00 18 00 20 c1 00 00 00 c5 15 00 00 91 15 00 00 ... ............
10: 91 15 00 00 91 15 00 00 91 15 00 00 91 15 00 00 ................
20: 91 15 00 00 91 15 00 00 91 15 00 00 c5 15 00 00 ................
@kriegsman
kriegsman / fadeTowardColor.ino
Created Dec 11, 2016
A function for fading one RGB color toward a target RGB color
View fadeTowardColor.ino
#include <FastLED.h>
// fadeTowardColor example code.
//
// Sample code that includes a function for fading one RGB color toward a target RGB color
// Also includes a function for fading a whole array of pixels toward a given color
//
// Both of these functions _modify_ the existing color, in place.
//
// All fades are done in RGB color space.
@kriegsman
kriegsman / TwinkleFOX.ino
Last active Jun 30, 2019
TwinkleFOX: Colored Twinkling Holiday Lights
View TwinkleFOX.ino
#include "FastLED.h"
#if defined(FASTLED_VERSION) && (FASTLED_VERSION < 3001000)
#warning "Requires FastLED 3.1 or later; check github for latest code."
#endif
#define NUM_LEDS 100
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
@kriegsman
kriegsman / sinelon.ino
Created Nov 24, 2015
"sinelon" with no visual gaps at any speed or pixel count
View sinelon.ino
// Updated sinelon (no visual gaps)
void sinelon()
{
// a colored dot sweeping
// back and forth, with
// fading trails
fadeToBlackBy( leds, NUM_LEDS, 20);
int pos = beatsin16(13,0,NUM_LEDS);
static int prevpos = 0;
@kriegsman
kriegsman / DiscoStrobeWithPalette.ino
Last active Mar 20, 2018
DIscoStrobeWithPalette - *FLASHING* lights in colors that you define using a color palette; default is Halloween colors.
View DiscoStrobeWithPalette.ino
#include "FastLED.h"
// DiscoStrobeWithPalette
// *Flashing* rainbow lights that zoom back and forth to a beat.
// See your doctor before using this code if you have certain neurological conditions.
//
// Same as "DiscoStrobe" (July 2015), except updated to use a
// color palette of your choice instead of the HSV color wheel.
// Default color palette is a section of Purple, Green, Orange,
// and White for Halloween decor.
@kriegsman
kriegsman / MapTwinkle.ino
Created Aug 25, 2015
MapTwinkle- randomly twinkle pixels up from a base color to a peak color and back down.
View MapTwinkle.ino
#include "FastLED.h"
// MapTwinkle
// Designed to illuminate a 'map' of pixels, each of which randomly
// sometimes twinkles brighter and then back down to it's base color again.
//
// Parameters include: background color, peak twinkle color, and speed
// of brightening and dimming.
//
// Mark Kriegsman, August 2015
@kriegsman
kriegsman / PaletteBeat.ino
Created Aug 25, 2015
PaletteBeat- pulse between two color palettes at a given BPM
View PaletteBeat.ino
#include "FastLED.h"
// PaletteBeat
// Shows how to pulse back and forth between two color palettes
// at a given number of beats per minute.
//
// The two color palettes in the pulse cycle each can
// also independently morph and shift -- although choosing
// new target palettes is not shown here.
//
You can’t perform that action at this time.