当前位置:   article > 正文

max30102c语言,max30102问题

linux系统max30102代码

程序如下:#include #include "MAX30105.h"

#include "heartRate.h"

#include "spo2_algorithm.h"

MAX30105 particleSensor;

#define MAX_BRIGHTNESS 255

#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega168__)

//Arduino Uno doesn't have enough SRAM to store 100 samples of IR led data and red led data in 32-bit format

//To solve this problem, 16-bit MSB of the sampled data will be truncated. Samples become 16-bit data.

uint16_t irBuffer[100]; //infrared LED sensor data

uint16_t redBuffer[100];  //red LED sensor data

#else

uint32_t irBuffer[100]; //infrared LED sensor data

uint32_t redBuffer[100];  //red LED sensor data

#endif

int32_t bufferLength; //data length

int32_t spo2; //SPO2 value

int8_t validSPO2; //indicator to show if the SPO2 calculation is valid

int32_t heartRate;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/401550
推荐阅读
相关标签
  

闽ICP备14008679号