First of all, I know this question has been asked a lot but I can't find any answer that solves my problem. So when I try to use processing to write stuff to the serial monitor of the Arduino it says that the port (in my case "com3") is busy. I have no idea with what it could be busy because I already set a delay on the reading of the serial-monitor.
Arduino code:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
// Serial.println("started");
// Serial.println();
}
void loop() {
if(Serial.available()){
char ch = (char) Serial.read();
Serial.println(ch);
ch = "";
delay(100);
}
Processing code:
import processing.serial.*;
Serial sPort;
String port;
void setup() {
port = Serial.list()[0];
sPort = new Serial(this, port, 9600);
//port.write("hey, its working");
}
I know it is really basic but I made the code as small as possible while still showing the problem
Thanks in advance