Skip to content

Instantly share code, notes, and snippets.

View kriegsman's full-sized avatar

Mark Kriegsman kriegsman

  • Boston
View GitHub Profile
/* Generate HTML page in C -- my first REAL Web App */
/* Mark Kriegsman, January 31, 2007 */
#define HTML_ENTITY(n,v) int n = v
HTML_ENTITY(gt,'>');
HTML_ENTITY(lt,'<');
HTML_ENTITY(P,'\n');
HTML_ENTITY(HTML,'\0');
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 ................
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...
@kriegsman
kriegsman / RedGreenPalette.ino
Last active December 2, 2017 16:41
Example showing how to make a simple striped palette, and use it to animated blended color bars
#include <FastLED.h>
// Example showing how to make a simple striped color palette,
// and use it to animated blended color bars
#define LED_PIN 3
#define NUM_LEDS 30
CRGB leds[NUM_LEDS];
CRGBPalette16 currentPalette;
@kriegsman
kriegsman / sinelon.ino
Created November 24, 2015 19:22
"sinelon" with no visual gaps at any speed or pixel count
// 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 / ClearWayQA ReadMe.txt
Created November 14, 2018 20:48
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 / DemoReel2Arg.ino
Created January 12, 2015 18:21
Variation on DemoReel100, showing passing of (hardcoded) parameters ... there are other ways to do this, but this is a simple start.
#include "FastLED.h"
// MODIFIED FastLED "just-100-lines-of-code" demo reel
//
// This example also shows one easy way to define multiple
// TWO-ARGUMENT animations patterns and have them automatically rotate.
//
// -Mark Kriegsman, January 2015
#if FASTLED_VERSION < 3001000
@kriegsman
kriegsman / SquareSwirl.ino
Created November 13, 2014 19:21
FastLED 3.1 2-D blur demo on 8x8 matrix
#include <FastLED.h>
#define LED_PIN 6
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
const uint8_t kSquareWidth = 8;
const uint8_t kBorderWidth = 1;
#define NUM_LEDS (kSquareWidth*kSquareWidth)
@kriegsman
kriegsman / XYShades
Last active May 3, 2020 14:08
XY matrix functions for RGB Shades Kickstarter
#include <FastLED.h>
// Use Version 2.1 or later https://github.com/FastLED/FastLED/tree/FastLED2.1
// ZIP file https://github.com/FastLED/FastLED/archive/FastLED2.1.zip
// RGB Shades data output to LEDs on pin 5
#define LED_PIN 5
// RGB Shades color order
#define COLOR_ORDER GRB
#define CHIPSET WS2811
@kriegsman
kriegsman / JCLOCK.ARC.TXT
Created March 11, 2020 21:45
"JClock for VMS" / Tue, 5 May 87 17:18 EDT / Info-Vax Digest, Thursday, 7 May 1987, Volume 0 : Issue 12
$! 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