trilife:
Can someone point me to where I will find these files on my new D: drive, please?
You will find the libraries under the libraries
subfolder of the Arduino sketchbook folder. You can find the sketchbook folder location in the Arduino IDE's File > Preferences > Sketchbook location preference.
trilife:
as well as changing the Mega256 to OptiBoot...
Please tell us how you installed the software to do that so we can answer your question.
trilife:
And, for future development, is there a way to save ALL pertinent files of a project in one place, so I don't have to go on a wild goose hunt every time I up-rev an older project...
There are three options:
You'll need to change the #include
directives in your sketch. For example, if the #include
directive for a library looks like this:
#include <ArduinoOTA.h>
you have to change it to the relative path to the header file, something like:
#include "src/ArduinoOTA/src/ArduinoOTA.h"
Depending on how the libraries were written, you will sometimes need to modify the #include
directives in the libraries as well.
Have a sketchbook for each project
You can set a custom sketchbook folder location in the Arduino IDE at File > Preferences > Sketchbook location. So you can just set the sketchbook folder location to your project-specific sketchbook folder when you want to use it. This allows you to use the libraries in the normal manner. It also allows you to bundle manually installed boards platforms with your project.
Have a portable Arduino IDE installation for each package
When you put the Arduino IDE in portable mode:
https://www.arduino.cc/en/Guide/PortableIDE
The sketchbook and data directory where boards platforms installed via Boards Manager are installed are under the "portable" subfolder of the Arduino IDE installation. This means that everything is in one folder, including the version of the Arduino IDE the project is compatible with. So this is the method that allows you to truly "save ALL pertinent files of a project".
I'll throw in another two, which are likely overboard for an Arduino project, but are common practice in professional projects:
Virtual machine for each project
This mean you also pin the operating system dependencies for compiling the project.
Non-virtual machine for each project
A company may archive an entire laptop for each project. This pins the hardware dependencies for compiling the project.