Changes between Version 14 and Version 15 of wade/embedded/arduino/example/temp


Ignore:
Timestamp:
Jun 6, 2013, 2:40:49 PM (11 years ago)
Author:
wade
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • wade/embedded/arduino/example/temp

    v14 v15  
    484484}}}
    485485
     486= 程式七:led 霹靂車 =
     487{{{
     488void setup() {
     489  for (int i=0; i<=7; i++)
     490  {
     491    pinMode(i, OUTPUT);
     492    digitalWrite(i, LOW);
     493  }
     494 
     495
     496}
     497
     498void loop()
     499{
     500  for (int i=0; i<=7; i++)
     501  {
     502    digitalWrite(i, HIGH);
     503  }
     504
     505}
     506}}}