First Example

Example for functions: pinMode digitalWrite delay toggle

Cycles a LED connected to pin 0 with a 1 second cycle - 500 ms on and 500 ms off.

Pinguino programs must have at least a setup function, which is run once when the board is powered up or after a reset, and a loop function, which, you guessed it, loops forever and is run when the setup function exit

This can be simplified making use of the Pinguino's toggle function - and itmakes code shorter and more readable: