Hardware Reference
In-Depth Information
Easy Programming with Codebender
Codebender is an easy way to get up and running with FLORA.
Instead of downloading the FLORA IDE, you just need to install a
Chrome or Firefox extension and driver, open the Codebender
IDE in your browser, and you can program your FLORA without
any further configuration. Codebender includes hundreds of
libraries from the Arduino community, and if you need one that
isn't included, you can install your own .
Installing Arduino Libraries
Arduino libraries are a convenient way to share code such as
device drivers or commonly used utility functions. The custom
Adafruit Arduino IDE comes preloaded with many useful libra-
ries that are required for some of the projects in this topic. In the
more advanced projects, like the NeoGeo Watch in Chapter 7 ,
you will need to download a library and install it in your Arduino
IDE .
Let's Get Blinking!
The Arduino IDE is really easy to use. Let's go over the basics of
the software and see how it works.
The first thing you need to do is connect your FLORA board to
your computer with a USB cable. Then, from the Tools menu,
under Board, choose “Adafruit Flora” and select the proper
serial port. If you're on a Mac, open the Tools menu, click Serial
Port, then select the port containing “usbmodem”. If you are
using a Windows or Linux computer, you will need to figure out
which COM port the board is attached to. The easiest way to do
this is to look at the list of available ports with your FLORA plug-
ged in (Tools Serial Port) then unplug the FLORA and look at
the list again. Whichever COM (Windows) or tty (Linux) port
disappeared from the list is the port used by your FLORA. Plug
your FLORA back in, and select that COM port.
The next step is to write some code, and upload it to your
FLORA. Let's start with a simple bit of code, called a sketch , that
will blink the LED on your FLORA.
 
Search WWH ::




Custom Search