Show Posts
|
|
Pages: [1]
|
|
5
|
Using Arduino / Networking, Protocols, and Devices / Re: Clean, straight-forward MPU-6050 code
|
on: January 31, 2013, 08:20:32 pm
|
|
Krodal,
Im trying to compile the code you provided and get the following errors:
sketch_jan31a.ino: In function 'int MPU6050_read(int, uint8_t*, int)': sketch_jan31a:802: error: 'class TwoWire' has no member named 'write' sketch_jan31a:806: error: no matching function for call to 'TwoWire::endTransmission(int)' C:\Documents and Settings\Gary W\My Documents\Arduino\libraries\Z/Wire.h:51: note: candidates are: uint8_t TwoWire::endTransmission() sketch_jan31a:811: error: no matching function for call to 'TwoWire::requestFrom(int, int&, int)' C:\Documents and Settings\Gary W\My Documents\Arduino\libraries\Z/Wire.h:52: note: candidates are: uint8_t TwoWire::requestFrom(uint8_t, uint8_t) C:\Documents and Settings\Gary W\My Documents\Arduino\libraries\Z/Wire.h:53: note: uint8_t TwoWire::requestFrom(int, int) sketch_jan31a:815: error: 'class TwoWire' has no member named 'read' sketch_jan31a.ino: In function 'int MPU6050_write(int, const uint8_t*, int)': sketch_jan31a:848: error: 'class TwoWire' has no member named 'write' sketch_jan31a:852: error: 'class TwoWire' has no member named 'write' sketch_jan31a:856: error: no matching function for call to 'TwoWire::endTransmission(int)' C:\Documents and Settings\Gary W\My Documents\Arduino\libraries\Z/Wire.h:51: note: candidates are: uint8_t TwoWire::endTransmission()
I thought most of the error were due to Wire Library not being available but its in the Library folder. I'm using a DUO with 1.0.3 version of the IDE
Any assistance would be appreciated.
Gary
|
|
|
|
|