Skip to content

Instantly share code, notes, and snippets.

@joegle
Last active August 29, 2015 14:02
Show Gist options
  • Save joegle/5af13d47ac6f98ebf08a to your computer and use it in GitHub Desktop.
Save joegle/5af13d47ac6f98ebf08a to your computer and use it in GitHub Desktop.
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