oxullo / Arduino-MAX30100

Arduino library for MAX30100, integrated oximeter and heart rate sensor
GNU General Public License v3.0
193 stars 136 forks source link

error: 'class TwoWire' has no member named 'setClock' #58

Open itsharsh opened 5 years ago

itsharsh commented 5 years ago

Description of the issue

C:\Users\user\Desktop\Arduino\libraries\Arduino-MAX30100-master\src\MAX30100.cpp: In member function 'bool MAX30100::begin()':

C:\Users\user\Desktop\Arduino\libraries\Arduino-MAX30100-master\src\MAX30100.cpp:30:10: error: 'class TwoWire' has no member named 'setClock'

 Wire.setClock(I2C_BUS_SPEED);

      ^

C:\Users\user\Desktop\Arduino\libraries\Arduino-MAX30100-master\src\MAX30100.cpp: In member function 'void MAX30100::readFifoData()':

C:\Users\user\Desktop\Arduino\libraries\Arduino-MAX30100-master\src\MAX30100.cpp:146:32: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]

         readoutsBuffer.push({

                            ^

exit status 1 Error compiling for board LinkIt ONE.