Initially Arduino IDE doesn't contain any support for esp8266. So we need to first install the package for esp8266.
Steps:-
-
Open
File
->Preferencess
. And add the URL - http://arduino.esp8266.com/stable/package_esp8266com_index.json inAdditional Boards Manager URL
and then press OK. -
Open
Tools
->Board
->Boards Manager
and search for esp8266 and Install it -
Select
Tools
->Board
->ESP8266 Boards
->NodeMCU1.0 (ESP 12E Module)
-
Select
Tools
->Ports
-> The port you attache the NodeMCU
Let's test our setup with a blinking sketch
Steps:-