max30101 1.0.0-RC3 copy "max30101: ^1.0.0-RC3" to clipboard
max30101: ^1.0.0-RC3 copied to clipboard

Package which integrates with the max30101 sensor, producing illustrative heart rate and O2 saturation readings

example/max30101_example.dart

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);
}
2
likes
110
pub points
18%
popularity

Publisher

verified publisheratsign.org

Package which integrates with the max30101 sensor, producing illustrative heart rate and O2 saturation readings

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

dart_periphery

More

Packages that depend on max30101