Ja, das stimmt. Also nochmal. XD

Code:
Pin x.Y as input
portx.y as output
do
if pinx.y=0 then
waitms 10
if pinx.y=0 then
while pinx.y = 0
wend
toggle port x.y
end if
end if
loop
So richtig schön ist das zwar nicht, aber das sollte nun funzen.
@Richard: Danke für die Anmerkung.

MfG Loki