简体   繁体   中英

Esp32 nodemcu GPIO

I am using esp32 nodemcu where I am using 16 GPIO pins in it for turning it HIGH and LOW as per requirement. When I power up nodemcu GPIOs are involuntarily being in HIGH state. I want to keep the GPIOs LOW on booting and only HIGH when I prompt to do it. Is there any simple method to do it. I am using arduino sketch programming.

You can try to use this function call with these variables. You can call this function at your setup loop.

pinMode("your pin number here without the "" ", INPUT_PULLDOWN);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM