no comment
Dependents: MAX30100_FirstTry MAX30100_V04
Fork of MAX30100 by
Diff: MAX30100.cpp
- Revision:
- 1:e96604eb8062
- Parent:
- 0:c8da8e2afe09
diff -r c8da8e2afe09 -r e96604eb8062 MAX30100.cpp --- a/MAX30100.cpp Mon Mar 27 23:21:28 2017 +0000 +++ b/MAX30100.cpp Tue Mar 28 23:16:21 2017 +0000 @@ -68,10 +68,11 @@ } void MAX30100::begin(pulseWidth pw, ledCurrent ir, sampleRate sr){ - I2CwriteByte(MAX30100_ADDRESS, MAX30100_MODE_CONFIG, 0x03); // Heart rate only - I2CwriteByte(MAX30100_ADDRESS, MAX30100_LED_CONFIG, 0XFF); - I2CwriteByte(MAX30100_ADDRESS, MAX30100_LED_CONFIG, ir<<4|0x0f); - I2CwriteByte(MAX30100_ADDRESS, MAX30100_SPO2_CONFIG, (sr<<2)|pw); + I2CwriteByte(MAX30100_ADDRESS, MAX30100_MODE_CONFIG, 0x03); // Heart rate only + I2CwriteByte(MAX30100_ADDRESS, MAX30100_LED_CONFIG, 0XFF); + I2CwriteByte(MAX30100_ADDRESS, MAX30100_LED_CONFIG, ir<<4|0x0f); + I2CwriteByte(MAX30100_ADDRESS, MAX30100_SPO2_CONFIG, (sr<<2)|pw); + //I2CwriteByte(MAX30100_ADDRESS, MAX30100_INT_ENABLE, 0xF0); } //void MAX30100::printRegisters(void){