Version 4 (modified by rock, 15 years ago) (diff) |
---|
1.環境
- OS - Ubuntu 9.10 Desktop (32bit)
- gcc-avr - 1:4.3.3-1
2.安裝開發工具於 Ubuntu
- 安裝
$ sudo aptitude install binutils-avr avrdude gcc-avr
- 安裝 Arduino IDE
$ wget http://arduino.googlecode.com/files/arduino-0017.tgz $ tar zxvf arduino-0017.tgz $ cd arduino-0017 $ ./arduino
3.Hello World
- 先透過 USB 連接到電腦,若是有抓到 arduino 板子的話,可以看到 PWR 燈和 L 燈會亮起來
- 開啟 Arduino IDE,設定連接埠
- HelloWorld 範例程式
- 選取範例檔 (如下圖)
- 編譯,按下 Verify 按鈕,若出現 「done compiling」表示編譯完成
- 燒錄至 Arduino 版子
- 察看 Console
Attachments (8)
- port.png (25.0 KB) - added by rock 15 years ago.
- HelloWorld.png (40.8 KB) - added by rock 15 years ago.
- Verify.png (15.8 KB) - added by rock 15 years ago.
- Upload.png (15.4 KB) - added by rock 15 years ago.
- Console.png (34.3 KB) - added by rock 15 years ago.
- echo.png (21.5 KB) - added by rock 15 years ago.
- tail.png (20.9 KB) - added by rock 15 years ago.
- processing_arduino.png (200.2 KB) - added by rock 15 years ago.
Download all attachments as: .zip