......不是一个星期更新一次吗
叮叮叮。。。
请问一定要用int 命令吗?
迷你强 发表于 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
编译有误。
怎么办啊
为什么只 亮2个灯? 我用的是白色的LED, 一定要用彩色的吗?
迷你强 发表于 2012-7-26 15:34 static/image/common/back.gif
一个一个的打开,没有关闭,计算机执行程序都是如果你设置打开,就一直打开,除非你再写语句让其关闭让他 ...
明白了………………
可以請問強哥
如果要讓燈全部一起亮起
每一顆間隔 2 後 逐一熄滅 ...(之後就不再亮起)
這要怎麼寫呢?
謝謝
为什么每个程序后都有一个}
我打进去验证的时候总是说这个不对:o
迷你强 发表于 2012-8-19 15:02
一样的啊,只要将所有点亮led的语句一起写出来就行了
给个例程吧/*
这个代码存在错误,运行不了啊
其实 用一个电阻就可以啊
谢谢强哥,准备买板子试了,
很适合我等初学者,十分感谢。
多顆LED貌似可以有很多變化啊!我也試著來玩玩看,感謝強哥啊!!