This file contains 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
// Variables | |
int pulsePin = 3; // Pulse Sensor purple wire connected to analog pin 0 | |
int blinkPin = 13; // pin to blink led at each beat | |
int fadePin = 5; // pin to do fancy classy fading blink at each beat | |
int fadeRate = 0; // used to fade LED on with PWM on fadePin | |
// Volatile Variables, used in the interrupt service routine! | |
volatile int BPM; // int that holds raw Analog in 0. updated every 2mS | |
volatile int Signal; // holds the incoming raw data |