Page 1 of 1

Linkit One - I2C - No function named setclock

Posted: Tue Mar 12, 2019 8:22 pm
by hkumarsingh142
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: Select all

MAX30105.cpp:147:13: error: 'class TwoWire' has no member named 'setClock'



exit status 1
Error compiling for board LinkIt ONE.
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)
Screenshot (9).png
Screenshot (9).png (14.66 KiB) Viewed 1737 times
So what is the solution to this problem?

Re: Linkit One - I2C - No function named setclock

Posted: Wed Mar 20, 2019 10:14 am
by bestlux
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.