Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Kriegsman kriegsman

  • Boston
View GitHub Profile
@kriegsman
kriegsman / JCLOCK.ARC.TXT
Created Mar 11, 2020
"JClock for VMS" / Tue, 5 May 87 17:18 EDT / Info-Vax Digest, Thursday, 7 May 1987, Volume 0 : Issue 12
View JCLOCK.ARC.TXT
$! JCLOCK ARCHIVE FILE.
$!
$! CREATE A NEW, EMPTY SUBDIRECTORY, "SET DEFAULT" TO IT,
$! PUT THIS FILE IN THE NEW SUBDIRECTORY AS JCLOCK.ARC AND THEN @JCLOCK.ARC
$!
$!
$! SUPER-ULTRA-GIVE-AWAY-WARE PROGRAM...COPY AND DISTRIBUTE AT RANDOM.
$!
$!
$! MARK KRIEGSMAN, AUTHOR 87-05-05
@kriegsman
kriegsman / Pacifica.ino
Last active Aug 25, 2020
Pacifica: gentle, blue-green ocean waves. For Dan.
View Pacifica.ino
//
// "Pacifica"
// Gentle, blue-green ocean waves.
// December 2019, Mark Kriegsman and Mary Corey March.
// For Dan.
//
#define FASTLED_ALLOW_INTERRUPTS 0
#include <FastLED.h>
FASTLED_USING_NAMESPACE
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 Sep 24, 2020
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.
You can’t perform that action at this time.