I'm studying the Wire Library and I've found a subfolder named "utility" which contains twi.h and twi.c files used by Wire.cpp (Arduino UNO and compatibles, not DUE).
My question is : Where is documented the usage of the subfolder "utility" ?
Could somebody give a link where the c++ subfolder "utility" is described ?
Could somebody give a link where the c++ subfolder "utility" is described ?
The fact that the IDE looks in a sub-folder named utility has nothing to do with standard C++. The name doesn't even have to be utility. Some libraries use utils.
PaulS:
The fact that the IDE looks in a sub-folder named utility has nothing to do with standard C++. The name doesn't even have to be utility. Some libraries use utils.
Hi PaulS,
If it's not a C++ standard, it's an AVR GCC compiler/linker directive. Do you know where the directive is written ?
I'm interrested to know other hidden directives.
Hi PaulS,
If it's not a C++ standard, it's an AVR GCC compiler/linker directive. Do you know where the directive is written ?
I'm interrested to know other hidden directives.
They are not hidden. To use an include file in utility or utils or bobIsYourUncle, you need to include the folder name in the statement:
So it now finds the utility files - but only when compiling Wire.cpp, not when compiling your sketch. Your sketch doesn't need to know about the utility includes.