Skip to content

Instantly share code, notes, and snippets.

View jimwhitfield's full-sized avatar

Jim Whitfield jimwhitfield

  • Silicon Valley, California
View GitHub Profile
@jimwhitfield
jimwhitfield / led_matrix_leap
Last active August 29, 2015 14:07
led_matrix_leap
// !!!
// Scroll down past where the alphabet is defined in order to set what to say
// !!!
#define CHAR_WIDTH 5 // each character is 5 columns wide
#define SP {0, 0, 0, 0, 0} //Space
#define DOT {0, 0, 1, 0, 0} //Space
#define EX {0, 125, 0, 0, 0} //Exclamation !
#define EX2 {0, 125, 0, 125, 0} //Exclamation !!
#define A {31, 36, 68, 36, 31}
#define B {127, 73, 73, 73, 54,}
@jimwhitfield
jimwhitfield / rgb_cycle
Created October 19, 2014 00:10
Simple little arduino sketch that cycles through a bunch of color combinations on an arduino driving an RGB LED.
const int RED_PIN = 9;
const int GREEN_PIN = 10;
const int BLUE_PIN = 11;
const int MAX_VAL=255;
void setup() {
// initialize digital pins as output:
for (int i = PIN_BASE; i <= PIN_BASE+PIN_CT; i++) {