- setup additional board url
- install board manage
- set board and port
- select blink example
- 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 managerfilter: esp8266
Set board and port
board: NodeMcu 1.0port: /dev/USB0
Select blink example
File -> Example -> esp8266 -> blinkUpload and run
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
delay(2000);
}
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
delay(2000);
}
No comments:
Post a Comment