The wire library also contains a include library. Due to "not top quality code of the wire library" a project using the wire lbrary also needs to include the utility folder. The same problem exists for ethernet and SD libraries.
From version 1.3 onwards libraries containing an utility subfolder also have the utility subfolder added to the include path.
I have been doing some tries, to add the utility to the include path.
But i haven´t got any luck.
Can you explain me the correct process for adding the utility subfolder to the include path in eclipse?
LuisSoares:
Can you explain me the correct process for adding the utility subfolder to the include path in eclipse?
You need to go into your project properties (right click the project and select properties)
There you can go to this window and add the utility subfolders to the "GNU C" and "GNU C++" languages
Best regards
Jantje
PS note you will see other values. That is perfectly normal.
This is the message I get from the compiler console:
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.c:115: error: conflicting types for 'twi_readFrom'
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.h:45: error: previous declaration of 'twi_readFrom' was here
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.c:192: error: conflicting types for 'twi_writeTo'
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.h:46: error: previous declaration of 'twi_writeTo' was here
Do you have any hint to help me?
Many thanks in advance.
I just did a quick test with 1.0.2 and it work fine.
I verified and twi_readFrom is declared on line 43 with me in Arduino 1.0.1 and Arduino 1.02.
As on your systems twi_readFrom is declared on line 45 you are not running a standard Arduino.
Please try installing a standard Arduino version (0022 0023 1.0 1.01 or 1.02) and try again.
Best regards
Jantje
I want to say thank you for all your hard work and hard time.
Let me start by explaining what i am trying to do with my arduino project. I have basically created an arduino aquarium monitor/controller for my fish tank. Basically I started my projected by dividing it up into about 15 mini projects. So i took care of each individual project and eventually combine them all into one. To do this have the main program void setup (){setupprogram1(); setupprogram2(); }..... I quickly realized the arduino ide was just really hard to work with on my larger project so i used notepad++ and then copied the program to arduino ide for compiling and uploading. I tried before to create a file for each project in arduino and get it to compile them but i got missing invalid function errors.
Now after doing some research i find out that eclipse is much better and more capable of doing exactly what i would like. I previous to finding this amazing plugin i tried to follow some tutorials, but they didn't go well. My problem is i am still trying to find out how to create a multifile program and i just can't seem to find what i am looking for by searching. This usually means i am searching for the wrong thing lol.
superman (is it really you 8) )
Thanks for the compliments
creating new files is easy in eclipse.
First thing is to decide is what type of file you want? Do you want a class a .cpp a .c a .h ....
Right click your project and select new->class(or header file; or source file; or source folder or just file)
Best regards
Jantje
Jantje:
creating new files is easy in eclipse.
First thing is to decide is what type of file you want? Do you want a class a .cpp a .c a .h ....
Right click your project and select new->class(or header file; or source file; or source folder or just file)
Talk about fast reply
I guess the problem is i don't understand the files (I need to do more research)
Jantje:
creating new files is easy in eclipse.
First thing is to decide is what type of file you want? Do you want a class a .cpp a .c a .h ....
Right click your project and select new->class(or header file; or source file; or source folder or just file)
Talk about fast reply
I guess the problem is i don't understand the files (I need to do more research)