oran_outan:
but the init on setup don't run.if i used on setup
...
run good.
I'm sure you'll find the setup code runs in both examples you gave, but may simply not be doing what you intended. In the second example you do not set the output states to LOW, so the two examples do not have identical effect. Could it be that setting the output LOW causes some problem?