Hardware Reference
In-Depth Information
// the loop routine runs over and over again forever:
void loop () {
digitalWrite ( led , HIGH ); // turn the LED on (HIGH is
// the voltage level)
delay ( 1000 ); // wait for a second
digitalWrite ( led , LOW ); // turn the LED off by making
// the voltage LOW
delay ( 1000 ); // wait for a second
}
And that's all there is to it! With this sketch running on your
FLORA, the LED should blink on and off. Try changing the value
of the delay from 1000 to some other value, then upload the
sketch to see what happens. If you have any problems running
this sketch, see Chapter 8 .
Search WWH ::




Custom Search