This example shows how blink a led connected on the pin GPIO02
CODE: blink.bas
led = 2 ' GPIO02. Change with the pin where your led is connected
pin.mode led, output
for z = 0 to 1000
pin(led) = 1 - pin(led)
pause 500
next z