config portd.7 = output
config portc.2 = input

taster alias pinc.2
led alias portd.7

do
if taster=1 then
toggle led
waitms 50
endif

loop