tomylver 发表于 2015-7-1 19:15:55

......不是一个星期更新一次吗

tomylver 发表于 2015-7-1 19:16:32

叮叮叮。。。

azan426 发表于 2016-3-13 21:40:25

请问一定要用int 命令吗?

smatt 发表于 2016-3-20 21:15:24

迷你强 发表于 2012-8-19 15:02 static/image/common/back.gif
一样的啊,只要将所有点亮led的语句一起写出来就行了

给个例程吧/*


Arduino:1.7.8 (Windows 8.1), 板:"Arduino Uno"

构建选项已变更,全部重新构建

sketch_mar20c.ino:16:1: error: stray '\' in program

sketch_mar20c.ino:16:1: error: stray '\' in program

sketch_mar20c.ino: In function 'void loop()':

sketch_mar20c.ino:16:5: error: expected '(' before 'uff08int'

sketch_mar20c.ino:16:5: error: 'uff08int' was not declared in this scope

sketch_mar20c.ino:16:14: error: expected ';' before 'x'

sketch_mar20c.ino:16:19: error: name lookup of 'x' changed for ISO 'for' scoping [-fpermissive]

sketch_mar20c.ino:16:19: note: (if you use '-fpermissive' G++ will accept your code)

sketch_mar20c.ino:16:29: error: expected ')' before 'uff09'

sketch_mar20c.ino:16:29: error: 'uff09' was not declared in this scope

sketch_mar20c.ino:17:9: error: expected ';' before '{' token

编译有误。

怎么办啊

jane2015 发表于 2016-6-1 20:31:23

为什么只 亮2个灯? 我用的是白色的LED, 一定要用彩色的吗?

xiang1029 发表于 2016-8-17 11:25:28

迷你强 发表于 2012-7-26 15:34 static/image/common/back.gif
一个一个的打开,没有关闭,计算机执行程序都是如果你设置打开,就一直打开,除非你再写语句让其关闭让他 ...

明白了………………

mickeyhuang 发表于 2016-8-20 22:09:37

可以請問強哥
如果要讓燈全部一起亮起
每一顆間隔 2 後 逐一熄滅 ...(之後就不再亮起)
這要怎麼寫呢?
謝謝

boobee 发表于 2016-10-6 17:51:51

为什么每个程序后都有一个}
我打进去验证的时候总是说这个不对:o

alding 发表于 2016-12-15 16:08:44

迷你强 发表于 2012-8-19 15:02
一样的啊,只要将所有点亮led的语句一起写出来就行了

给个例程吧/*


这个代码存在错误,运行不了啊

卐Devil卍 发表于 2017-1-2 14:22:27

其实 用一个电阻就可以啊

tomjim520 发表于 2017-4-6 10:58:20

谢谢强哥,准备买板子试了,

碌碌无为 发表于 2017-6-4 04:09:42

很适合我等初学者,十分感谢。

iceanthony 发表于 2017-7-25 12:04:27

多顆LED貌似可以有很多變化啊!我也試著來玩玩看,感謝強哥啊!!
页: 1 2 3 4 5 [6]
查看完整版本: Arduino入门教程--第三课--多个LED的闪烁