i2cdevlib icon indicating copy to clipboard operation
i2cdevlib copied to clipboard

’class TwoWire’ has no member named ‘setClock

Open jorgediosdado opened this issue 10 years ago • 2 comments

Hi,

I am trying to use MPU6050 library, but i am getting this compilation error:

MPU6050_DMP6.ino: In function ‘void setup()’: MPU6050_DMP6.ino:166:14: error: ‘class TwoWire’ has no member named ‘setClock’ MPU6050_DMP6.ino:216:60: error: ‘digitalPinToInterrupt’ was not declared in this scope

Any idea on what the issue may be?

Cheers!

jorgediosdado avatar May 22 '16 18:05 jorgediosdado

Both of those methods are relatively new, what version of Arduino are you using?

eadf avatar May 22 '16 18:05 eadf

I was using Arduino 1.0.5 I uploaded to the newest version and I don't get that error anymore, so problem solved. Thanks @eadf

jorgediosdado avatar May 22 '16 19:05 jorgediosdado