Linkit One - I2C - No function named setclock

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’

_i2cPort->setClock(i2cSpeed);

         ^

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)
[attachment=0]Screenshot (9).png[/attachment]

So what is the solution to this problem?
Screenshot (9).png

Hello,

I have heard a loooooooot of problems about Linkit One’s I2C port, the problem is that its official I2c library sucks, and can not compatible with many code based on standard Arduino Libraries unless you rewrite your code or the MTK update its library. And I’m sorry for I do not have any ideas about it yet.