First thanks for creating this great community.
I've been searching for a couple days but i didn't find anything.
I think is no need to explain the code, it's quite simple.
When I use a Ruby script to send the data trought the Serial port everything is correct, so I suppose that the error is in the Processing code.
When I execute this, Arduino puts on the Serial Window, random 6,5, and New Lines.
Thank you!
Arduino code:
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
Serial.println(Serial.read());
}
}
Processing code:
import processing.serial.*;
Serial port;
void setup() {
port = new Serial(this, Serial.list()[0], 9600);
size(400, 50);
}
void draw() {
port.write(65);
delay(500);
}