Hardware Reference
In-Depth Information
Figure 2-2. FLORA D7
The next part of the code is the setup function. This is where
you tell FLORA what you want each pin to do. In this example,
we want to turn the LED on, so we set the pin as an output:
// the setup routine runs once when you press reset:
void setup () {
// initialize the digital pin as an output.
pinMode ( led , OUTPUT );
}
The third chunk of code is the main program loop. Once the pro-
gram has reached the main program loop, it will stay in it and
continuously loop through this part of the code until your
FLORA is unplugged or reset:
Search WWH ::




Custom Search