This example is for Wiring version 1.0 build 0100+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know.
The loop() function execute continuously. the setup() is only executed once. In this example the onboard LED blinks forever every two seconds
// The statements in the setup() function// execute once when the program beginsvoidsetup()
pinMode(WLED, OUTPUT); // Set pin WLED (onboard LED) to OUTPUT
// The statements in loop() are run until the// board is stopped. Each statement is run in// sequence and after the last line is read, the first// line is run again.voidloop()