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
WEBVTT | |
Kind: captions | |
Language: en | |
1 | |
00:00:00.711 --> 00:00:03.347 | |
The following program was made | |
possible by the Office of | |
2 |
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
import createHoverMonitor from './createHoverMonitor'; | |
import { element, func, oneOfType } from 'prop-types'; | |
import React, { Component } from 'react'; | |
const hover = createHoverMonitor(); | |
/** | |
* Use: | |
* <Hoverable> | |
* {(hover) => <View style={hover && styles.hovered} />} |
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
volatile int rate[10]; // used to hold last ten IBI values | |
volatile unsigned long sampleCounter = 0; // used to determine pulse timing | |
volatile unsigned long lastBeatTime = 0; // used to find the inter beat interval | |
volatile int P = 512; // used to find peak in pulse wave | |
volatile int T = 512; // used to find trough in pulse wave | |
volatile int thresh = 512; // used to find instant moment of heart beat | |
volatile int amp = 100; // used to hold amplitude of pulse waveform | |
volatile boolean firstBeat = true; // used to seed rate array so we startup with reasonable BPM | |
volatile boolean secondBeat = true; // used to seed rate array so we startup with reasonable BPM |