Changes between Version 8 and Version 9 of rock/note/arduino


Ignore:
Timestamp:
Jan 4, 2010, 11:02:55 AM (15 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rock/note/arduino

    v8 v9  
    5555 * 此範例程式讓 L 燈亮5秒之後熄滅1秒,一樣透過 Arduino IDE "complie" 後再 "upload",之後可看 Arduino 板子上的 L 燈變化
    5656{{{
    57 #define LED 13
     57#define LED 13     //定義 LED 腳位為 13
    5858void setup()
    5959{
     
    6262void loop()
    6363{
    64   digitalWrite(LED, HIGH);
    65   delay(5000);
    66   digitalWrite(LED, LOW);
    67   delay(1000);
     64  digitalWrite(LED, HIGH);     //設定 LED 燈開啟
     65  delay(5000);                 //持續開啟 5 秒
     66  digitalWrite(LED, LOW);      //設定 LED 燈關閉
     67  delay(1000);                 //持續關閉 1 秒
    6868}
    6969}}}
     
    9191[[Image(echo.png,width=300px)]] [[Image(tail.png,width=300px)]]
    9292
    93 
     93== 參考資源 ==
     94 * 書目
     95   * [http://www.books.com.tw/exep/prod/booksfile.php?item=0010446252 踏進互動科技世界 - 使用 Arduino](本書譯者收入的13%將捐助台灣88水災用)
     96   * [http://www.books.com.tw/exep/prod/booksfile.php?item=F011109004 Making Things Talk]
     97 * 網站(英文)
     98   * [http://www.arduino.cc/ Arduino]
     99   * [http://www.ladyada.net/learn/arduino/index.html Arduino Tutorial]
     100 * 網站(中文)
     101   * [http://arduino.tw/ Arduino.TW]
     102   * [http://wiki.arch.nctu.edu.tw/Arduino/Arduino ArchiWiki]
    94103[[BR]]
     104[[BR]]