max30101 1.0.0-RC3 max30101: ^1.0.0-RC3 copied to clipboard
Package which integrates with the max30101 sensor, producing illustrative heart rate and O2 saturation readings
import 'package:max30101/max30101.dart';
late Max30101 pulseOxymeter;
void onBeat(bool beatDetected, double bpm, double sao2) {
printWithTimestamp ("onBeat called with beatDetected:$beatDetected bpm:$bpm sao2:$sao2");
}
void main() {
Max30101 max30101 = Max30101(RealI2CWrapper(1), false, debug:false);
max30101.runSampler(onBeat);
}