Go Down

Topic: Wire.h troubles (Read 3416 times) previous topic - next topic

TommiP

Feb 20, 2015, 07:34 pm Last Edit: Feb 20, 2015, 07:46 pm by TommiP Reason: Updated the IDE version I've tried so far.
Hi

Could anyone please explain me why Wire.h library don't work with Due but it works with mega2560?

When I try to compile (with Due) for example unmodified I2C-scanner by Mr Gammon, I only get error message "twi.c:25:20: fatal error: avr/io.h: No such file or directory" no matter which folder I try to copy such a file.

I'm using very version of Wire-library which is another attachment.

BR
- Tommi


PS. I've tried IDE 1.6.0 and 1.5.8 so far.

Palliser

Hi TommiP,

Each Arduino IDE 1.5.X and 1.6.0 contains its own Wire library under...
Quote
...\hardware\arduino\sam\libraries\...
If you error comes from...
Quote
...C:\Users\xxx\Documents\Arduino\libraries\Wire\utility\..
then you should remove that library.

p

TommiP

Hi Palliser

Yes, that was the fault that I had Wire-library in my C:\Users... directory and it used the old one.

Thanks for help :)

-TommiP

Go Up