-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation fails when included through Arduino IDE "Include Library" menu #38
Comments
I'm not sure why Arduino IDE even does that, maybe it includes all Can you copy the full error text from the compilation, this might be solved with an |
The error text is as follows:
|
You're correct that by default the Arduino IDE adds includes for all .h files in the library's root source folder. I can think of two solutions:
That will cause only the include of TinyWireS.h to be added to the sketch but this feature was only added in Arduino IDE 1.6.10 so the problem will still occur with older IDE versions. Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#libraryproperties-file-format |
When the library is included using the "Include Library" menu in the latest Arduino IDE, both the TinyWireS.h file and the usiTwiSlave.h file are included by default. This makes compilation fail until the user comments out the line including "usiTwiSlave.h". Is there a way to revise this behaviour so that the IDE only includes TinyWireS.h by default?
While commenting this line out is a simple process, the confusing error message and lack of instructions can confuse many inexperienced users such as myself.
The text was updated successfully, but these errors were encountered: