Page 1 of 1

Hi , all , is there any function to disable the gpio function of specific pin in esp32..??

Posted: Sat Apr 22, 2017 8:57 am
by Reeshma
can anyone please say.?

Re: Hi , all , is there any function to disable the gpio function of specific pin in esp32..??

Posted: Sat Apr 22, 2017 9:39 am
by WiFive
What you need "disable" to mean?

Re: Hi , all , is there any function to disable the gpio function of specific pin in esp32..??

Posted: Mon Apr 24, 2017 12:02 am
by ESP_Angus
Switching the pin to an input with gpio_set_direction(gpio, GPIO_MODE_INPUT) or gpio_config() will disable the output driver and put the pin into a Hi-Z state. This is probably the closest you can do to "disabling" the pin.

Re: Hi , all , is there any function to disable the gpio function of specific pin in esp32..??

Posted: Tue Apr 25, 2017 8:58 am
by Reeshma
yea , that was okay , (for eg,) am continuously getting the data from esp32 through pir sensor , now i want to disable the particular gpio pin (which is getting the input from pir), how can i disable the gpio..??

Re: Hi , all , is there any function to disable the gpio function of specific pin in esp32..??

Posted: Tue Apr 25, 2017 9:07 am
by preetam
Hi,

I think pir sensor has a Potentiometers (knob) to change the sensitivity and also the duration until the output should be high if a motion is detected. changing the duration knob for e.g to min ( 3 seconds) and then including a delay of 3 seconds in the code would be one of the feasible solutions.

Thank you
Paul