void setup(){
Serial.begin(9600); //啟動序列傳輸,速度9600bps
}
void loop(){
Serial.println("hello~~"); //持續輸出"hello~~"字串
上傳到Arduino後,開啟序列埠監控視窗,就可以看到持續輸出的字串