max86150 - MAX86150

class max86150.MAX86150(callback=None, sample_buffer_len=128, sample_rate=200, prox_callback=None)[source]

The MAX86150 class provides a stream interface to the MAX86150 PPG and ECG.

Example:

import max86150
m = max86150.MAX86150()

data = m.read()
for sample in data:
    print("Red: {} Infrared: {} ECG: {}", sample.red, sample.infrared, sample.ecg)

m.close()

New in version 1.16.

enable_sensor()[source]

Enables the sensor.

Automatically called when instanciating the sensor object.

close()[source]

Close the currently open connection to the sensor.

read()[source]

Read as many samples as currently available.