I have an arduino duemilanove. I'm trying to send an array of positive and negative floating point numbers, stored within the arduino, to processing.
            
I was going one step at a time by sending a single byte by using the following code and it worked perfectly.
             
             
             
Thanks. 
           
 
            
           I was going one step at a time by sending a single byte by using the following code and it worked perfectly.
- void setup()
 {
 Serial.begin(9600);
 }
 byte a=43;
 void loop()
 {
 Serial.write(a);
 }
- import processing.serial.*;
 Serial myPort;
 void setup()
 {
 String portName = "COM4";
 
 myPort = new Serial(this, portName, 9600);
 }
 void draw()
 {
 if(myPort.available()>0)
 {
 println(myPort.read());
 delay(1000);
 }
 else
 {
 println("no devices found");
 }
 }
Thanks.
 
              
              1  
            
 
            
 
 
           
 
             
 
            