設定RS232. Serial.begin(9600);. // 設定A0 輸入. pinMode(A0, INPUT);. } void loop(). {. // 讀值. int val = analogRead(A0);. // 傳送資料至電腦.
確定! 回上一頁