3
void loop()
{
delay(2000); //delay 2s
run(10); //Run
}
Experimental steps:
1. We need to open the code of this experiment:
advance.ino
, click
“
√
”
under the menu
bar to compile the code, and wait for the word "
Done compiling
" in the lower right
corner, as shown in the figure below.
2. In the menu bar of Arduino IDE, we need to select
【
Tools
】
---
【
Port
】
---
selecting the port that the serial number displayed by the device manager just now,
as
shown in the figure below.