Instructions Circuit Diagram
- 48 -
We will explan this in detail a bit further down (there is also a version of this
program WITHOUT comments so that you can see how short the program is
in fact. The comments inate it a lot but are necessary for the understanding.
The uncommented version is also useful to copy the code in your own pro-
grams!).
PN2 retrieves now the above mentioned “make_all.bat“ batch le. This will on
its turn retrieve the program “make“. More info about “make“ will follow later.
The example program will now be compiled. The generated hex le contains
the program in the translated format for the microcontroller and can be uploa-
ded and executed later. The compilation process generates a lot of temporary
les (sufxes like “.o, .lss, .map, .sym, .elf, .dep“). Just ignore them. The newly
set up tool “make clean” will erase them all. Only the hex le is of interest for
us. By the way, the function “make clean” will not erase this le.
First of all we just want to test if the compi-
lation of programs works properly.
In the Tools menu on top both freshly instal-
led menu items (see g.) should appear (or
the [WinAVR] inputs existing as a standard
in PN; whatever, it works normally with
both).
Please click now on “MAKE ALL“!