I am trying to send some integer values over serial to an Ardunio from processing.
text(“X:” + xrot_val, 0, 50);
text(“Z:” + zrot_val, 100, 50);
I know the xrot_val etc are integers as I get them as numbers on screen.
The serial output is in ascii, and I can’t find a way in processing to convert to an integer.
Even tried serialPort.write(int(xrot_val)); with no luck.