Arduino Forum

Products => Arduino Due => Topic started by: TommiP on Feb 20, 2015, 07:34 pm

Title: Wire.h troubles
Post by: TommiP on Feb 20, 2015, 07:34 pm
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.
Title: Re: Wire.h troubles
Post by: Palliser on Feb 20, 2015, 08:45 pm
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
Title: Re: Wire.h troubles
Post by: TommiP on Feb 21, 2015, 06:49 am
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