开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: A little ardunio help


Jack Purdum
 

The idea of a "sketch directory" is okay if you're just trying things out, but if you are working on a "serious project", I think it's a good idea to have it off the root directory with a directory name that makes it clear what it is. I had a suggested directory structure in an earlier email today. Anytime I install a new version of the IDE, I make a root diretory with the release number in its name. My latest is?
????
? ?E:\Arduino1.8.3

Under that directory are all the normal IDE files and subdirectories, but I also add a new one called?Temp. I then go into the File --> Preferences menu option and set the "Sketchbook Location" to E:\Arduino1.8.3\Temp. That way, any experimenting I do is localize to the current version of the IDE. As it stands now, I can go back to Rel 1.05 on this machine and see every sketch I've written since 2013. If I wanted to dust off an old machine, I could go back to pre-1.0.

It's all personal preferences, but this helps keep me organized at an age where that's not easy.

Jack, W8TEE



From: John Backo via Groups.Io <iam74@...>
To: [email protected]
Sent: Friday, August 18, 2017 8:18 PM
Subject: Re: [BITX20] A little ardunio help

"Where in God's name does Ardunio hide the sketches?"

The compilations (including the hex file) are in

C:\[user]\AppData\Local\Temp\

It is usually in a sub-directory with a long list of numbers. That is an
encoded version of the date and compilation number and starts with "build".

Things have changed a bit with recent versions, but most compilations can
still be made with a "sketch" directory put where you want it.? Make a sub-directory
named after your sketch and put the .ino file and other .cpp and .h files in there.
Also under the sketch directory, include a sub-directory named lib or libraries and
put found libraries in there. (You can also include them in the main Arduino library
directory using a zip import, but they are wiped out with each new version.

Incidentally, running the Arduino IDE in "verbose" mode (see preferences)
will give you locations of files in the window under the .ino window,
as well as error messages if any.

john
AD5YE





Join [email protected] to automatically receive all group messages.