Figure 3-1
From code to board
When you press the Upload button on your Arduino IDE, it launches a chain of events
that results in your sketch being installed on the Arduino and being run. This is not as
straightforward as simply taking the text that you typed into the editor and moving it to the
Arduino board.
The first step
is to do something called
compilation
. This takes the code you have
written and translates it into machine code—the binary
language that the Arduino
understands. If you click the triangular Verify button on the Arduino IDE, this actually
attempts to compile the C that you have written without trying
to send the code to the
Arduino IDE. A side-effect of compiling the code is that it is checked to make sure that it
conforms to the rules of the C language.
If you type
Dostları ilə paylaş: