Page 1 of 1

ESP32 gpio pin

Posted: Thu Mar 14, 2019 2:13 pm
by nickking
Hello experts

my question is i have a slave device connected to my ESP32 and i need to reset this slave device at some time
the reset pin of the slave device is connected to my GPIO pin

please see attached picture
gpio_pin.png
gpio_pin.png (166.68 KiB) Viewed 4307 times
  • I want to put a GPIO pin in high impedance mode at boot up time
  • After 1 second Then i want to pull this GPIO pin to ground so that value is 0 for atleast 2ms(slave device resets)
  • Then i want to put it back in high impedance mode again
can some one tell me how i can achieve this can some one give me example code i am using Arduino ide and pin mode in Arduino ide has
INPUT,OUTPUT, INPUT_PULLUP.



Regards

Re: ESP32 gpio pin

Posted: Fri Mar 15, 2019 2:23 pm
by ESP_Sprite
Moved to the Arduino subforum as you seem to want a solution specifically to that SDK.

Re: ESP32 gpio pin

Posted: Fri Mar 15, 2019 2:37 pm
by idahowalker
Are you using freeRTOS?

something like, if not using freeRTOS, set pin 1 or 0, delayMicroseconds(x), set pin 1 or 0?