8 years, 6 months ago.

Difference between pin.mode(PullUp) and pin = 1?

Sorry if it is a silly question. I have a RF module which its reset pin must be logical 1 to NOT TO reset.

I consider two solutions:

SOLUTION 1

reset_pin.mode(PullUp)

SOLUTION 2

reset_pin = 0;
wait_ms(50);
reset_pin = 1;

Is this two solution same?

Thanks.

Be the first to answer this question.