Like many integrated development environments, AVRsack keeps information about your projects (called sketches to follow Arduino practice) in a project file. This file always should have the same name as the directory it resides in, and for compatibility with the Arduino IDE, AVRsack will automatically create missing project files.
From the File
menu, select New
→Sketch…
. You will be prompted for a project name, and AVRsack will then proceed to create
NAME
NAME/NAME.avrsackproj
NAME/NAME.ino
From the File
menu, select New
→File…
. You will be prompted for a file name, and AVRsack will create the file and add it to the frontmost open sketch. Preferably, the file should be placed in the sketch directory.
Currently, AVRsack understands the following file extensions:
.h (.hpp, .hh)
.c
.cpp (.cxx, .c++, .cc)
.S
.md
Be aware that the Arduino IDE will only understand a subset of these file types and extensions.
Click the +
button in the sketch window. You will be prompted for an existing file, which will be added to the sketch. Note that the file is NOT copied to the sketch directory, it should already reside there.
Select the file name and click the -
button in the sketch window. You will be asked whether you want to move the file to the trash, or merely remove it from its sketch.
The Arduino IDE ships with a selection of standard libraries, and many third party libraries exist on the web. In the Sketch
menu, select the library you want to se from the Import Standard Library
or Import Contributed Library
submenus.