Wednesday, August 8, 2018

Programing NodeMcu with Arduino IDE


  1. setup additional board url
  2. install board manage
  3. set board and port
  4. select blink example
  5. upload and run

Setup additional board url

file -> preference paste the link into field "Additional Bard Manager URL"



http://arduino.esp8266.com/stable/package_esp8266com_index.json

Install board

Tools -> Board -> Board manager
filter: esp8266

Set board and port

board: NodeMcu 1.0
port: /dev/USB0

Select blink example

File -> Example -> esp8266 -> blink

Upload and run

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
  digitalWrite(LED_BUILTIN, HIGH);
  delay(2000);
}

No comments: