網頁筆記本-003 使用COM Port 進行Debug 參考程式 void setup() { // put your setup code here, to run once: // 串列通訊Port口設定 Serial.begin(9600); // RS232通訊 //使用MEGA 2560有多PORT UART時,指令使用[ Serial1]/[Serial2]/[Serial3]來設定 } void loop() { // put your main code here, to run repeatedly: Serial.write("TEST001\n"); // 利用寫出的功能Debug delay(500); }
留言
張貼留言