Here is the code. I flashed it successfully.
void setup(){
pinMode(12,INPUT);
digitalWrite(12,HIGH);
}
void loop(){
int t= digitalRead(12);
if(t==HIGH){
digitalWrite (14,HIGH);
}
}
SO whenever I ground the pin 12 nothing happens the esp wont take any input.
I tried blinking led with pin 14 as well as 12 it works.
I also tried to connect to the WiFi network and connect to twitter and post something using Twitter library and it works.
But digital input isn't working. I also noted one thing that my esp isn't giving proper serial output at any baudrate.
So does this mean my esp is partially damaged?
Do i need to flash another firmware?
Any help is appreciated.