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

Reeshma
Posts: 37
Joined: Tue Mar 28, 2017 12:40 pm

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

Postby Reeshma » Sat Apr 22, 2017 8:57 am

can anyone please say.?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

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

Postby WiFive » Sat Apr 22, 2017 9:39 am

What you need "disable" to mean?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Mon Apr 24, 2017 12:02 am

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.

Reeshma
Posts: 37
Joined: Tue Mar 28, 2017 12:40 pm

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

Postby Reeshma » Tue Apr 25, 2017 8:58 am

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..??

preetam
Posts: 49
Joined: Thu Jan 26, 2017 2:31 pm
Location: Germany

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

Postby preetam » Tue Apr 25, 2017 9:07 am

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

Who is online

Users browsing this forum: No registered users and 119 guests