Changes between Version 12 and Version 13 of rock/note/arduino


Ignore:
Timestamp:
Jan 20, 2010, 5:18:26 PM (14 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rock/note/arduino

    v12 v13  
    9797
    9898void setup(){
    99 
    10099  String arduinoPort = Serial.list()[0];
    101100  port = new Serial(this, arduinoPort, 9600);
    102 
    103 
    104 
    105101}
    106102
     
    111107    URLConnection conn = url.openConnection();
    112108    conn.connect(); // now connect to the Website
    113  
    114109    BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    115 
    116110    while ((data = in.readLine()) !=null){
    117111    port.write(in.readLine());
    118     }
    119    
     112    }   
    120113  }
    121114  catch (Exception ex) { // If there was an error, stop the sketch
     
    131124  Serial.begin(9600);
    132125}
    133 
    134126void loop()
    135127{