I want to get the Heart Rate through MAX30102 sensor which sends data through the I2C Bus.
I tried the example from the library itself and getting the right data when I use ARDUINO MEGA.
But when I try to upload the same code in the Linkit One board, an error occurs:
[code]MAX30105.cpp:147:13: error: ‘class TwoWire’ has no member named ‘setClock’
exit status 1
Error compiling for board LinkIt ONE.[/code]
Libraries used: <Wire.h> and “MAX30105.h”
when I commented out the line in the MAX30105 library, it did show the data but also some zero values on a specific time interval…(PS: Screenshot is attached)
So what is the solution to this problem?