GETTING STARTED WITH NODE-MCU ESP8266 WIFI MODULE
FOLLOW THESE STEPS TO WRITE ARDUINO SKETCH FOR NODE MCU ESP8266
IOT PLATFORM
STEP 1:-
Boards manager link: https://arduino.esp8266.com/stable/package_esp8266com_index.json
OPEN ARDUINO-IDE SOFTWARE => FILES => PREFERENCES => PASTE THE LINK ON
Additional Boards Manager URL's
STEP 1:-
NOW GOTO Tools => Board => Boards Manager
open "boards Manager" => type "esp8266 community" => select version and click on "install"
after completion of the installation, it will look like this
STEP 3:-
******installed successfully******
NOW LET'S CHECK HOW THIS IS WORKING
NOW GOTO Tools => Board => Esp8266 Boards => select "NodeMCU 0.9(ESP-12 MODULE)"
NOW GOTO "FILES" => "EXAMPLES" => "ESP8266" => "BLINK"
JUST UPLOAD BASIC "BLINKING SKETCH"
void setup() {
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is active low on the ESP-01)
delay(1000); // Wait for a second
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
0 Comments
Please do not Enter any Spam Link in the Comment Box
Emoji