ESP32 gpio pin

nickking
Posts: 3
Joined: Wed Mar 06, 2019 9:58 pm

ESP32 gpio pin

Postby nickking » Thu Mar 14, 2019 2:13 pm

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 4252 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

ESP_Sprite
Posts: 8926
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 gpio pin

Postby ESP_Sprite » Fri Mar 15, 2019 2:23 pm

Moved to the Arduino subforum as you seem to want a solution specifically to that SDK.

idahowalker
Posts: 166
Joined: Wed Aug 01, 2018 12:06 pm

Re: ESP32 gpio pin

Postby idahowalker » Fri Mar 15, 2019 2:37 pm

Are you using freeRTOS?

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

Who is online

Users browsing this forum: No registered users and 65 guests