The sketch complied and ran fine until I added a library. Then I got the following errors:
C:\Users\sraci\OneDrive\Documents\Arduino\Dyno_Acquisistion_Final\Dyno_Acquisistion_Final.ino:9:10: fatal error: Wire.h: No such file or directory #include <LiquidCrystal_I2C.h> // The Arduino I2C is hard coded SDA = pin A4) & SCL = pin A5
^~~~~~~~
compilation terminated.
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Users\sraci\OneDrive\Documents\Arduino\libraries\Arduino-LiquidCrystal-I2C-library-master
Not used: C:\Users\sraci\OneDrive\Documents\Arduino\libraries\LiquidCrystal_I2C
exit status 1
Compilation error: Wire.h: No such file or directory
It appears the error is duplicate libraries? So do I delete one. Which one?
Master or the other ?
As an aside, when I try to update libraries, several won't update saying duplicates are there. I assume the same issue, but not sure.
IDE is 2.2.1. BTW 1.8.13 is also installed on this machine. Issue?
which you haven't installed yet.
When then compiler finds an error and finds multiple libraries it will also inform you of that. Not really an error unless the error is found 'inside' the particular library used.
Mind you those libraries are 1 probably the same, and 2 so much in the same vicinity that i would just consider them duplicate installs.
"Wire" is a "platform bundled" library. It is installed along with each boards platform. So there is never a need to install the library by itself. It will always be installed already.
Because they each use a standardized compatible API, and because the Arduino build system automatically makes only the bundled libraries of the currently selected board's platform available, it is not immediately obvious that each platform has its own variant of the "Wire" library. This is because the implementation of the library is very architecture specific.
For this reason, there is no universal "Wire" library. If you find a random "Wire" library on the Internet, it will only work for the specific architecture it was written for. If the user manages to install the library, it is likely to cause serious problems because the build system may now select that global installation of the library instead of the platform bundled library that was actually written for their board. Since Wire is such a fundamental library, that sort of problem can affect a lot of sketches and libraries that depend on it.
So it is a bad idea to instruct users to install the "Wire" library. The only time it would make sense to do that is if a very advanced user wanted to use a modified or beta test version of the library, fully aware of and prepared to deal with the potential impacts of making a global installation of the library.
I'm going to ask you to post the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Check the box next to "Show verbose output during: ☐ compilation" in the "Preferences" dialog.
Click the "OK" button.
Select Sketch > Verify/Compile from the Arduino IDE menus.
Wait for the compilation to fail.
You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V (Command+V for macOS users).
This will paste the compilation output into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Click the "Reply" button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:
Open a forum reply here by clicking the "Reply" button.
Click the "Upload" icon () on the post composer toolbar:
A dialog will open.
In the dialog, select the .txt file you saved.
Click the "Open" button.
Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
Not an issue. You can have multiple installations of Arduino IDE on your computer without any problems. I have around 300 different versions of the IDE installed on my computer.
Yeah sorry i forgot about that, i never use I2c, but that means there is something wrong with the installed boards definitions if the IDE can't find it, or with the IDE installation. It's even possible that it is 'Onedrive' related, i avoid that like the plague. Or just a bug in IDE 2.x.
Regardless, somehow things got messed up with the boards, and i found it best to then actually un-install the core used and then re-install it, but i guess if it's the Arduino AVR core that gets installed with the IDE, even that may be confusing. Anyway i'll let you provide support, no need for 2 people to piss on the same tree.