println problems with arduino
in
Integration and Hardware
•
2 years ago
I just want to send a delay value with arduino but i thought let's start with sending the frameCount of the processing sketch.
arduino:
Processing:
This is the output i get in the Serial monitor from arduino (exept the last line):
Apart from it being messed up, also a lot of frames are not coming in...
arduino:
- #define LED 13
int incoming;
void setup() {
Serial.begin(9600);
pinMode(LED, OUTPUT);
}
void loop() {
if (Serial.available()) {
incoming = Serial.read();
Serial.println(incoming);
}
}
Processing:
- import processing.serial.*;
Serial port;
void setup() {
println(Serial.list());
port = new Serial(this, Serial.list()[1], 9600);
}
void draw() {
port.write(frameCount);
}
This is the output i get in the Serial monitor from arduino (exept the last line):
Apart from it being messed up, also a lot of frames are not coming in...
- 123
5
7
8
1112
3
15
18
2122
3
2526
7
29
31
32
3536
7 -
- fuck i hate this forum
- fuck i hate this forum
1