Author Topic: How to use GPIO2,14 & 12 of ESP8266 as input?  (Read 695 times)

0 Members and 1 Guest are viewing this topic.

Offline mrnamsTopic starter

  • Newbie
  • Posts: 5
  • Country: in
    • MrNams
How to use GPIO2,14 & 12 of ESP8266 as input?
« on: October 24, 2023, 05:45:23 pm »
I have ESP8266 NodeMCU V3 board, I defined GPIO2, GPIO14, GPIO12 as input and set to LOW in setup function, but when I read state of these GPIO they always give HIGH, I read that these are set to HIGH by board after bootup.
Please not I have used all other GPIO, and they are working, so only these two are available.
My question is what to do to use these GPIO as input?
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2057
  • Country: fi
Re: How to use GPIO2,14 & 12 of ESP8266 as input?
« Reply #1 on: October 30, 2023, 08:02:52 pm »
Input pins are externally defined.
Advance-Aneng-Appa-AVO-Beckman-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Triplett-YFE
(plus lesser brands from the work shop of the world)
 

Offline liaifat85

  • Regular Contributor
  • *
  • !
  • Posts: 172
  • Country: bd
Re: How to use GPIO2,14 & 12 of ESP8266 as input?
« Reply #2 on: November 01, 2023, 11:07:48 pm »
I think you have to use a board with a higher number of GPIO pins.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf