Customizing Hex File Output
When Arduino compiles your sketches, it produces an output file called Hex file. This file is usually stored in some remote location usually under user/appdata. To streamline the process of accessing created Hex files, basic6 recommends the creation of a readily available repository.
To begin, create a new folder on your desktop or within selected file system that will act as Hex file repository.
Click on desktop icon to open and access the Arduino IDE.
Within the Menu selection Click On File > Preferences.
Scroll down to access the provided link between the “More preferences can be edited directly in the file”; “edit only when Arduino is not running” messages.
This will provide access to the Preferences file document within a text editor.
In the opened preferences text document, customize the location of Hex file location by entering the build path that was created in the previous Output File Creation step.
In the following example, a folder named "OUTPUT" is created on the user's desktop.
Enter the line for the build path as the third line of the preferences file using the edit function. Click save when complete. The Arduino should be restarted to register any changes.
To test the created Hex file repository, within the IDE interface access File>Examples>01.Basics>Blink which enables the creation of a quick sketch that can be pushed out to the Arduino.
Once selected, click the Verify button (check mark) in the upper left of the Arduino IDE to compile the Blink Sketch. This will cause the built-in LED lights on the Arduino Yun to blink.
The output of the sketch should be captured and viewable within the designated Hex file folder.