多语言展示
当前在线:1883今日阅读:78今日分享:13

arduino编程for语句的应用

arduino编程for语句的应用。
工具/原料

arduino

方法/步骤
1

定义六个LED灯,定义数字接口

2

依次设置 3-8 个数字引脚为输出模式

3

创建循环函数

4

设计变量

5

点亮i引脚相连的 LED 灯

6

延时1200ms

注意事项

for 循环形式为:for(;;)语句;

推荐信息