2014年4月30日 星期三

Arduino : Hello World

1. 開啓 Arduino 程式畫面


2. 輸入程式如下:

程式 :
-----------------------------------------------
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
Serial.println("Hello, World!");
delay(500);
}
view raw SerialHello hosted with ❤ by GitHub
-----------------------------------------------

3. Verify


4.  Upload



下載完成會出現 "Done Uploading"



5. 按 Arduino Uno 上紅色 Reset button

6. 開啓 Serial Monitor

7. 執行結果



程式架構


沒有留言:

張貼留言