Changes between Version 28 and Version 29 of wade/embedded/arduino/example/temp


Ignore:
Timestamp:
Jun 7, 2013, 2:10:06 PM (11 years ago)
Author:
wade
Comment:

--

Legend:

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

    v28 v29  
    692692}
    693693}}}
     694
     695= 程式十三:led 矩陣作業一 =
     696{{{
     697void setup()
     698{
     699  for (int i = 2; i <= 17; i++)
     700  {
     701    pinMode(i, OUTPUT);
     702  }
     703  clean();
     704}
     705
     706void loop()
     707{
     708 
     709 
     710}
     711
     712void clean()
     713{
     714  for (int i = 2; i <= 9; i++)
     715  {
     716    pinMode(i, LOW);
     717  }
     718  for (int i = 10; i <= 17; i++)
     719  {
     720    pinMode(i, HIGH);
     721  }
     722}
     723}}}
     724
    694725[[Image(LED8x8-2.png)]]
    695726[[Image(四方型.png)]]