Code:
REPEAT
HIGH GPIO.2
PAUSE 10000
LOW GPIO.1
PAUSE 3000
HIGH GPIO.1
PAUSE 10000
LOW GPIO.1
PAUSE 3000
UNTIL GPIO.3=0
But you should have a look at your PBP MAnual and the BLINK.BAS example