what does it say when you put
println(val);
behind this?
that will print what processing gets from the arduino, perhaps something wrong happens there.
what does it say when you put
println(val);
behind this?
that will print what processing gets from the arduino, perhaps something wrong happens there.