Type the following program in the console window. (below)
DIR(15)= 1 ' enable pin 15 as an output
WHILE X<30
OUT(15) = X AND 1 ' drive pin 15 high when x is odd, low when x is even
X=X+1
WAIT(500)
LOOP
For the SuperPRO and PROplus, the LED is connected to P2(10). Use the following
FIO2DIR =
&H2009C040 ' this is the DIR register for port 2, its also
defined in #include
<LPC17xx.bas>
*FIO2DIR = 1<<10
WHILE X<30
P2(10) = X and 1
X=X+1
WAIT(500)
LOOP

To stop a running program simply press the Stop button.