Changes between Version 11 and Version 12 of wade/embedded/arduino/example/temp


Ignore:
Timestamp:
May 9, 2013, 3:50:03 PM (12 years ago)
Author:
wade
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • wade/embedded/arduino/example/temp

    v11 v12  
    323323}
    324324}}}
     325
     326= 程式四:由 PC 傳送資料至 Arduino =
     327{{{
     328void setup()
     329{
     330  Serial.begin(9600);
     331}
     332
     333void 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}}}