Changes between Version 11 and Version 12 of wade/embedded/arduino/example/temp
- Timestamp:
- May 9, 2013, 3:50:03 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
wade/embedded/arduino/example/temp
v11 v12 323 323 } 324 324 }}} 325 326 = 程式四:由 PC 傳送資料至 Arduino = 327 {{{ 328 void setup() 329 { 330 Serial.begin(9600); 331 } 332 333 void loop() 334 { 335 if(Serial.available()) 336 { 337 // Serial.println(Serial.read()); 338 int val = Serial.read(); 339 if (val == XX) 340 { 341 } 342 delay(300); 343 } 344 } 345 346 }}}