NodeMCU8266 Digital  input in serial Monitor  

Today i show you Digital read in nodemcu8266 module .
Digital read(Push Button)

A digital signal supplied to the NodeMCU8266  is known as digital input. This signal can be generated manually using a push button switch.
Push button switch is a switch which provides connectivity between its terminals when pressed. When the button is released terminals get disconnected.
First you hove to need Setup connection 
This is the code for NodeMcu on   Arduino IDE




void setup()


{


pinMode(16, INPUT);


Serial.begin(9600);


}


void loop()


{


if (0 == digitalRead(16)) {


Serial.println("SIGNAL HIGH");


}


if (1 == digitalRead(16)) {


Serial.println("SIGNAL LOW");


}


delay(1000);


}
DigitalWrite SerialMonitor-Mechatronicslabrpi

Digital Read vedio





2 comments:

  1. nice post I want to learning this post thanks sir

    ReplyDelete
  2. nice post I want to learning this post thanks sir

    ReplyDelete

Theme images by Dizzo. Powered by Blogger.