This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |