Can't find arduino.h, also it says byte is not a type

Asked by Sarunas

Hello,

I've downloaded the library. Because im using BMA180/ITG3200/HMC5883/BMP05, i did the following:

On Freeimu i didi the following:

uncommented:

#define FREEIMU_VER 6 // For FreeIMU v0.3.5_BMP
#define FIMU_ACC_ADDR BMA180_ADDRESS_SDO_HIGH

Switched:

#define FIMU_BMA180_DEF_ADDR BMA180_ADDRESS_SDO_LOW
#define FIMU_ITG3200_DEF_ADDR ITG3200_ADDR_AD0_LOW

to

#define FIMU_BMA180_DEF_ADDR BMA180_ADDRESS_SDO_HIGH
#define FIMU_ITG3200_DEF_ADDR ITG3200_ADDR_AD0_HIGH

and then tried to compile it.

When uplooading i got these errors:

In file included from FreeIMU_yaw_pitch_roll.cpp:1:
D:\Software\arduino-0022\libraries\adxl345driver/ADXL345.h:15:21: error: Arduino.h: No such file or directory
In file included from FreeIMU_yaw_pitch_roll.cpp:1:
D:\Software\arduino-0022\libraries\adxl345driver/ADXL345.h:101: error: 'byte' does not name a type
D:\Software\arduino-0022\libraries\adxl345driver/ADXL345.h:173: error: 'byte' has not been declared
D:\Software\arduino-0022\libraries\adxl345driver/ADXL345.h:205: error: variable or field 'print_byte' declared void
D:\Software\arduino-0022\libraries\adxl345driver/ADXL345.h:205: error: 'byte' was not declared in this scope
In file included from FreeIMU_yaw_pitch_roll.cpp:3:
D:\Software\arduino-0022\libraries\itg3200filv05/ITG3200.h:124: error: 'byte' has not been declared
D:\Software\arduino-0022\libraries\itg3200filv05/ITG3200.h:127: error: 'byte' does not name a type

How could i fix this?

Question information

Language:
English Edit question
Status:
Solved
For:
FreeIMU Edit question
Assignee:
No assignee Edit question
Solved by:
Fabio Varesano
Solved:
Last query:
Last reply:
Revision history for this message
Sarunas (sharas-s) said :
#1

Actually updating to arduino 1 helped to solve all these issues. However, now i get the following errors:

D:\Software\arduino-1.0\libraries\bma180\bma180.cpp: In member function 'int BMA180::getIDs(int*, int*)':
D:\Software\arduino-1.0\libraries\bma180\bma180.cpp:139: error: call of overloaded 'write(int)' is ambiguous
D:\Software\arduino-1.0\libraries\Wire/Wire.h:55: note: candidates are: virtual size_t TwoWire::write(uint8_t)
D:\Software\arduino-1.0\hardware\arduino\cores\arduino/Print.h:49: note: size_t Print::write(const char*)

Revision history for this message
Best Fabio Varesano (fabio-varesano) said :
#2
Revision history for this message
Sarunas (sharas-s) said :
#3

Thanks Fabio Varesano, that solved my question.

Revision history for this message
Sarunas (sharas-s) said :
#4

Sadly, somehow i haven't noticed that page, but really thanks for your help!