Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Jep
#50199
martinayotte wrote:Also, make sure your have RES/CH_PD pulled up, GPIO15 pulled down, and also GPIO2/GPIO0 pulled up.


Thanks martinayotte :)

All of this is OK on my side and my ESP12E is working quite well (except some watchdog resets but anyway)

Do you have any idea of what extra GPIO I should use as an INPUT then?
I'm still confused about how to dedicate a GPIO to only INPUT or OUTPUT stuff if I don't need any other functions such as SPI ... :?
User avatar
By martinayotte
#50204 Simply use pinMode(<gpio_no>, INPUT) or pinMode(<gpio_no>, OUTPUT).
Which one to choose ? That is depends if you already used some for something else or not, but lets says GPIO4 or GPIO5 for example.
User avatar
By Jep
#50220
martinayotte wrote:but lets says GPIO4 or GPIO5 for example.


GPIO4 and GPIO5 are already used as OUTPUT in my case.
I just needed another one as INPUT. I tried GPIO12 again and it seems to work now!! quit strange :shock: ...

By the way, I need to use this INPUT as a push button so I added a pull-up resistor and wired GPIO12 to the button.
I saw that it was possible on certain Socs to remove external pull-ups by activating internal ones.
Is it possible to use internal pull-ups with ESP8266 using Pinmode function?
User avatar
By Jep
#50222 I tried with
pinMode(GPIO12, INPUT_PULLUP);
but it does not boot anymore :(
Nevermind, I'll use pinMode(GPIO12, INPUT) with an external pullup!