Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month 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.
https://en.wikipedia.org/wiki/Pull-up_resistor
posted by Raph Francois 22 Oct 2015