void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(14,INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int button=digitalRead(14);
if (button==1)
{
Serial.println("Push button is ON");
}
else
{
Serial.println("Push button is OFF");
}
delay(10); // this speeds up the simulation
}