Can i use Wire1 of teensy 3.5 with mpu6050 i2cdev
mtikkyu opened this issue · comments
I comment #define I2CDEV_IMPLEMENTATION I2CDEV_ARDUINO_WIRE then select #define I2CDEV_IMPLEMENTATION I2CDEV_TEENSY_3X_WIRE in I2Cdev.h file
when i compile code it show this error :
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp: In static member function 'static int8_t I2Cdev::readBytes(uint8_t, uint8_t, uint8_t, uint8_t*, uint16_t, void*)':
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:224:9: error: 'TwoWire' was not declared in this scope
TwoWire *useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:224:18: error: 'useWire' was not declared in this scope
TwoWire useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:225:42: error: expected primary-expression before ')' token
if (wireObj) useWire = (TwoWire )wireObj;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp: In static member function 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t, uint16_t, void)':
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:336:13: error: 'TwoWire' was not declared in this scope
TwoWire *useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:336:22: error: 'useWire' was not declared in this scope
TwoWire useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:337:42: error: expected primary-expression before ')' token
if (wireObj) useWire = (TwoWire )wireObj;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp: In static member function 'static bool I2Cdev::writeBytes(uint8_t, uint8_t, uint8_t, uint8_t, void)':
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:584:9: error: 'TwoWire' was not declared in this scope
TwoWire *useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:584:18: error: 'useWire' was not declared in this scope
TwoWire useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:585:42: error: expected primary-expression before ')' token
if (wireObj) useWire = (TwoWire )wireObj;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp: In static member function 'static bool I2Cdev::writeWords(uint8_t, uint8_t, uint8_t, uint16_t, void)':
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:651:9: error: 'TwoWire' was not declared in this scope
TwoWire *useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:651:18: error: 'useWire' was not declared in this scope
TwoWire *useWire = &Wire;
^
C:\Users\myname\Documents\Arduino\libraries\I2Cdev\I2Cdev.cpp:652:42: error: expected primary-expression before ')' token
if (wireObj) useWire = (TwoWire *)wireObj;
^
Error compiling for board Teensy 3.5.