Skip to content

Instantly share code, notes, and snippets.

View raster's full-sized avatar

Pete Prodoehl raster

View GitHub Profile
@mathias
mathias / raster's drawbot
Created January 13, 2011 21:15
I made it possible to run the DrawBot by feeding it an array. Haven't tested since I don't have servos.
/*
* Drawbot.pde
*/
#include <Servo.h>
Servo leftServo;
Servo rightServo;
int servoPinL = 9;
@voodoojello
voodoojello / boxcar-individual-notification.pl
Created December 13, 2010 03:18
Simple Boxcar User Notification using Library for WWW in Perl (LWP)
#!/usr/bin/perl -w
#
# Simple Boxcar User Notification using Library for WWW in Perl (LWP)
# Author: mark page [m.e.page@voodoojello.net]
# Modified: Sun Dec 12 21:16:43 CST 2010
#
# expects Boxcar user sign-up address, *not* push.boxcar.io address as $ARGV[0]
#
use strict;
use warnings;
/**
* code to read one quadratic rotary encoder gray code.
*
* rights: http://tinyurl.com/by-sa-3-0
*/
int inputPin1 = 2; // A
int inputPin2 = 4; // B
int val1 = 0, val2 = 0;
int oldVal1 = 0, oldVal2 = 0;