Skip to content

Instantly share code, notes, and snippets.

View mganucheau's full-sized avatar

Matthew Ganucheau mganucheau

View GitHub Profile
@mganucheau
mganucheau / LPD8806_PIR_Interrupt.ino
Created March 30, 2012 20:57
LPD8806 PIR Interrupt
#include "LPD8806.h"
#include "SPI.h"
int dataPin = 2;
int clockPin = 3;
int pirPin = 7; //digital 7
int stripSpeed = 10;
int pirVal = 0; // PIR sensor
LPD8806 strip = LPD8806(32, dataPin, clockPin);
@mganucheau
mganucheau / gist:5499453
Last active December 16, 2015 21:28
LPD8806 LED Code for our Yacht Club's Anchor
// LPD8806 LED Code for our Yacht Club's Anchor
/*************************************************************************************/
#include "LPD8806.h" // Library Here: https://github.com/adafruit/LPD8806
#include "SPI.h"
int totalLEDs = 14;
int dataPin = 2;
int clockPin = 3;
LPD8806 strip = LPD8806(totalLEDs, dataPin, clockPin);