Hallo,
meinst du so?

Code:
if pind.2=1 then 

 portc.0=1
  waitms 200
 portc.1=1 
  waitms 200
 portc.2=1
  waitms 200
 portc.3=1
  waitms 200
 portc.4=1
  waitms 200
 portc.5=1
  waitms 200

if pind.2=0 then
 portc.5=1
  waitms 200
 portc.4=1
  waitms 200
 portc.3=1
  waitms 200
 portc.2=1
  waitms 200
 portc.1=1
  waitms 200
 portc.0=1
  waitms 200
Gruß
Florian