Pin input pull-mode of ESP32 WROVER module

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
choies
Posts: 8
Joined: Sat Jan 30, 2016 11:06 am

Pin input pull-mode of ESP32 WROVER module

Post by choies » Wed Oct 10, 2018 3:39 pm

I am using ESP32 WROVER module.

Can I set input pull-mode as follows, when I use a Pin as the input mode for ESP32 WROVER module?
1) p = Pin(Pin_number, Pin.IN) # for No Pull
2) p = Pin(Pin_number, Pin.IN, Pin.PULL_UP)
3) p = Pin(Pin_number, Pin.IN, Pin.PULL_DOWN)

When I refer to ESP8266 GPIO Pin document(https://docs.micropython.org/en/latest/ ... /pins.html), I can't find PULL_DOWN mode.

Please let me know the answer.

SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: Pin input pull-mode of ESP32 WROVER module

Post by SpotlightKid » Wed Oct 10, 2018 5:04 pm

You should refer to the full reference documentation, not only to the tutorial:

https://docs.micropython.org/en/latest/ ... e.Pin.html

Post Reply