Problem of ESP8266-01

The following situation is what bothers me :

Though I had already finished the entire program.
However, when the pin is 0, no matter how I switch the button, it’ll be fine. Conversely, if I set the pin to 1 for an amount of time, it’ll just breakdown at the time I press the button.
So, I need to reconnect again and thus rewrite the information of my WiFi.

I was wondering if the problem may results to my wafer, as the serial number was Esp8266-01, or it might breakdown easily because the size of my wafer couldn’t be afforded to run all the entire program.

Below is my forum
Please kindly guide me how to solve the problem.

#define BLYNK_TEMPLATE_ID "TMPLPGJ4GwHr"
#define BLYNK_DEVICE_NAME "Light01"

#define BLYNK_FIRMWARE_VERSION        "0.1.0"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

// Uncomment your board, or configure a custom board in Settings.h
//#define USE_SPARKFUN_BLYNK_BOARD
//#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD

#include "BlynkEdgent.h"
BLYNK_WRITE(V0)
{
  int pinValue = param.asInt();
  digitalWrite(0,pinValue);
}

void setup()
{
  pinMode(0,OUTPUT);
  Serial.begin(115200);
  delay(100);

  BlynkEdgent.begin();
}

void loop() {
  BlynkEdgent.run();
}


It appears that you are using the Edgent sketch. This requires two of the board’s pins to be used for an LED and a physical button.
The LED is to indicate if the device is in provisioning mode, and the physical button is to clear the saved WiFi credentials when pressed for 10 seconds.
These pins are defined in the Settings.h file, and by these lines of code in the main .ino file:

If none of these lines of code are un-commented then it is the custom board type in Settings.h that are used - and which need to be edited.

Pete.