Skip to content

Commit 3c7ff5a

Browse files
committed
Adds update documentation, updates delays and their times
1 parent 93aedf8 commit 3c7ff5a

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

Documents/MAX32664_REV4.pdf

348 KB
Binary file not shown.
1.02 MB
Binary file not shown.

examples/Example1_config_BPM_Mode1/Example1_config_BPM_Mode1.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
// Reset pin, MFIO pin
3131
int resPin = 4;
32-
int mfioPin = 5;
32+
int mfioPin = 13;
3333

3434
// Takes address, reset pin, and MFIO pin.
3535
SparkFun_Bio_Sensor_Hub bioHub(resPin, mfioPin);

src/SparkFun_Bio_Sensor_Hub_Library.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,13 @@ uint8_t SparkFun_Bio_Sensor_Hub::enableWrite(uint8_t _familyByte, uint8_t _index
13121312
_i2cPort->write(_indexByte);
13131313
_i2cPort->write(_enableByte);
13141314
_i2cPort->endTransmission();
1315-
delay(ENABLE_CMD_DELAY);
1315+
1316+
if( _familyByte == ENABLE_SENSOR && _indexByte == ENABLE_MAX30101)
1317+
delay(ENABLE_CMD_DELAY);
1318+
if( _familyByte == ENABLE_ALGORITHM && _indexByte == ENABLE_AGC_ALGO)
1319+
delay(ALGO_CMD_DELAY_SHORT);
1320+
if( _familyByte == ENABLE_ALGORITHM && _indexByte == ENABLE_WHRM_ALGO)
1321+
delay(ALGO_CMD_DELAY_LONG);
13161322

13171323
// Status Byte, success or no? 0x00 is a successful transmit
13181324
_i2cPort->requestFrom(_address, static_cast<uint8_t>(1));

src/SparkFun_Bio_Sensor_Hub_Library.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
#define ADC_MASK 0x9F
2424
#define READ_ADC_MASK 0x60
2525

26-
#define ENABLE_CMD_DELAY 45 // Milliseconds
27-
#define CMD_DELAY 6 // Milliseconds
26+
#define ENABLE_CMD_DELAY 40 // Milliseconds
27+
#define ALGO_CMD_DELAY_SHORT 20 // Milliseconds
28+
#define ALGO_CMD_DELAY_LONG 40 // Milliseconds
29+
#define CMD_DELAY 2 // Milliseconds
2830
#define MAXFAST_ARRAY_SIZE 6 // Number of bytes....
2931
#define MAXFAST_EXTENDED_DATA 5
3032
#define MAX30101_LED_ARRAY 12 // 4 values of 24 bit (3 byte) LED values

0 commit comments

Comments
 (0)