Skip to content

Instantly share code, notes, and snippets.

@joegle joegle/pulse-snippet.cpp
Last active Aug 29, 2015

Embed
What would you like to do?
void setup(){
Serial.begin(115200); // we agree to talk fast!
pinMode(blinkPin,OUTPUT); // pin that will blink to your heartbeat!
interruptSetup(); // sets up to read Pulse Sensor signal every 2mS
}
void loop(){
if (QS == true){
Serial.println(IBI); // milliseconds: '660\n'
QS = false;
}
delay(20);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.