![Handson Technology ESP8266 WiFi Manual Download Page 7](http://html1.mh-extra.com/html/handson-technology/esp8266-wifi/esp8266-wifi_manual_3556998007.webp)
void
setup
() {
pinMode
(
5
,
OUTPUT
);
// GPIO05, Digital Pin D1
}
void
loop
() {
digitalWrite
(
5
,
HIGH
);
delay
(
900
);
digitalWrite
(
5
,
LOW
);
delay
(
500
);
}
7
Find out which Com Port is assign for CH340
Select the correct Com Port as indicated on
‘Device Manager”
Note: if this is your first time using CH340
“ USB-to-Serial ” interface, please install the driver first before proceed
the above Com Port setting. The CH340 driver can be download from the below site:
https://github.com/nodemcu/nodemcu-devkit/tree/master/Drivers
Blink Test
We'll begin with the simple blink test.
Enter this into the sketch window (and save since you'll have to). Connect a LED as shown in Figure3-1.
Now you'll need to put the board into bootload mode. You'll have to do this before each upload. There is no timeout
for bootload mode, so you don't have to rush!
•
Hold down the
‘Flash’ button.
•
While holding down
‘ Flash’, press the ‘RST’ button.
•
Release
‘RST’, then release ‘Flash’