close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": libsvn_ra-1.so.1: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Jun 6, 2013, 2:40:49 PM (13 years ago)
- Author:
-
wade
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v14
|
v15
|
|
| 484 | 484 | }}} |
| 485 | 485 | |
| | 486 | = 程式七:led 霹靂車 = |
| | 487 | {{{ |
| | 488 | void setup() { |
| | 489 | for (int i=0; i<=7; i++) |
| | 490 | { |
| | 491 | pinMode(i, OUTPUT); |
| | 492 | digitalWrite(i, LOW); |
| | 493 | } |
| | 494 | |
| | 495 | |
| | 496 | } |
| | 497 | |
| | 498 | void loop() |
| | 499 | { |
| | 500 | for (int i=0; i<=7; i++) |
| | 501 | { |
| | 502 | digitalWrite(i, HIGH); |
| | 503 | } |
| | 504 | |
| | 505 | } |
| | 506 | }}} |