Changes between Version 9 and Version 10 of rock/note/arduino
- Timestamp:
- Jan 4, 2010, 11:13:02 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
rock/note/arduino
v9 v10 1 1 [[PageOutline]] 2 == 1.環境==2 == 【1.環境】 == 3 3 * OS - Ubuntu 9.10 Desktop (32bit) 4 4 * gcc-avr - 1:4.3.3-1 5 5 6 6 [[BR]] 7 == 2.安裝開發工具於 Ubuntu==7 == 【2.安裝開發工具於 Ubuntu】 == 8 8 * 安裝 9 9 {{{ … … 19 19 20 20 [[BR]] 21 == 3.Hello World==21 == 【3.Hello World】 == 22 22 * 先透過 USB 連接到電腦,若是有抓到 Arduino 板子的話,可以看到 PWR 燈和 L 燈會亮起來,可透過 dmesg 指令去察看 23 23 {{{ … … 52 52 53 53 [[BR]] 54 == 4.控制燈號==54 == 【4.控制燈號】 == 55 55 * 此範例程式讓 L 燈亮5秒之後熄滅1秒,一樣透過 Arduino IDE "complie" 後再 "upload",之後可看 Arduino 板子上的 L 燈變化 56 56 {{{ … … 70 70 71 71 [[BR]] 72 == 4.Interfacing with linux==72 == 【5.Interfacing with linux】 == 73 73 * Arduino 在 linux 上會被視為一個 char device,可以透過簡單的導向功能,把輸入和輸出導向 Arduino 74 74 * 此段程式碼會讓 Arduino 把輸入的字元輸出 … … 91 91 [[Image(echo.png,width=300px)]] [[Image(tail.png,width=300px)]] 92 92 93 == 參考資源 == 93 [[BR]] 94 == 【可能遇到問題】 == 95 * 開啟 IDE 時有錯誤訊息 -> (1)檢查環境變數 (2)是否已安裝相關套件(avr-libc, gcc-avr...) 96 * 無法燒錄 -> (1)檢查Tool/Board (2)檢查 Tool/Serial (3)重新拔插USB介面 97 [[BR]] 98 == 【參考資源】 == 94 99 * 書目 95 100 * [http://www.books.com.tw/exep/prod/booksfile.php?item=0010446252 踏進互動科技世界 - 使用 Arduino](本書譯者收入的13%將捐助台灣88水災用)