Sorry, yeah I forgot.
The problem is, just nothing happens. The Label doesn't change. I didn't show the Arduino code since it is straightforward.
void setup(){
pinMode(13,OUTPUT);
digitalWrite(13,LOW);
Serial.begin(9600);
}
void loop(){
if (Serial.available()>0){
int message;
message = Serial.read()-'0';
digitalWrite(13,message);
delay(1000);
Serial.print(message);
}
}
The longer I think about it, I think it's just a thread-problem, although I don't get any error message, just nothing happens.