void setup() {
// initialize the digital pin as an output.
pinMode(13, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
3.选择串口
4.编译
5.编译成功,如果不成功会报错,错误的地方回用红色标注,改过来就好了
6,下载(上传)到开发板
4.威廉希尔官方网站
连接实物图
1.13角接LED 正极 GND接负极
2. led长正短负
3.观察闪烁间隔
1.下载ARDUINO IDE
1.点击
下载速度可能有点慢耐心等待推荐使用360浏览器
2.解压点击arduino图标
2.安装驱动
1.下载ch341驱动
2.安装驱动,打开exe文件
3.配置arduino IDE
1.打开arduino IDE,吧开发板u***插入电脑u***口
2.把代码复制IDE上
void setup() {
// initialize the digital pin as an output.
pinMode(13, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}