Figure 2-2
The Blink sketch
You now need to transfer or upload that sketch to your Arduino board.
So plug your
Arduino board into your computer using the USB lead. You should see the green “On”
LED on the Arduino light up. The Arduino board will probably already be flashing, as the
boards are generally shipped with the Blink sketch already installed. But let’s
install it
again and then modify it.
When you plug the board in, if you are using a Mac, you may get the message, “A new
network interface has been detected.” Just click Cancel; your Mac is confused and thinks
that the Uno is a USB modem.
Before
you can upload a sketch, you must tell the Arduino
application what type of
board you are using and which serial port you are connected to.
Figures 2-3
and
2-4
show
how you do this from the Tools menu.