Machine Pin internal pull resistor mode using integer #10269
-
We can uses Pin.PULL_UP to enable internal pull up resistor and Pin.PULL_DOWN to enable pull down resistor. eg.
we also can use integer for internal resistor pull mode
i have tried to use integer value 3 as pull resistor mode using these code:
edit : updated test code when nothing connected to pin 0 what does pull=-1 and pull=3 mode do? I'm using mpy 1.19.1 October nightly + lolin c3 mini board(esp32-c3) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
My guess is that it's enabling both a pull up and a pull down. |
Beta Was this translation helpful? Give feedback.
-
wiring: |
Beta Was this translation helpful? Give feedback.
My guess is that it's enabling both a pull up and a pull down.