| 1 | [[PageOutline]] |
| 2 | == 1.環境 == |
| 3 | * OS - Ubuntu 9.10 Desktop (32bit) |
| 4 | * gcc-avr - 1:4.3.3-1 |
| 5 | |
| 6 | [[BR]] |
| 7 | == 2.安裝開發工具於 Ubuntu == |
| 8 | * 安裝 |
| 9 | {{{ |
| 10 | $ sudo aptitude install binutils-avr avrdude gcc-avr |
| 11 | }}} |
| 12 | * 安裝 [http://www.arduino.cc/en/Main/Software Arduino IDE] |
| 13 | {{{ |
| 14 | $ wget http://arduino.googlecode.com/files/arduino-0017.tgz |
| 15 | $ tar zxvf arduino-0017.tgz |
| 16 | $ cd arduino-0017 |
| 17 | $ ./arduino |
| 18 | }}} |
| 19 | |
| 20 | [[BR]] |
| 21 | == 3.Hello World == |
| 22 | * 先透過 USB 連接到電腦,若是有抓到 arduino 板子的話,可以看到 PWR 燈和 L 燈會亮起來 |
| 23 | * 開啟 Arduino IDE,設定連接埠 |
| 24 | [[Image(port.png)]] |
| 25 | * HelloWorld 範例程式 |
| 26 | [[Image(HelloWorld.png)]] |