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: Select all
MAX30105.cpp:147:13: error: 'class TwoWire' has no member named 'setClock' _i2cPort->setClock(i2cSpeed); ^ exit status 1 Error compiling for board LinkIt ONE.
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?