well thx for that
so the idea i hade to solve my problem was wrong. or is there a was to transform the incoming bytes to integers?
i have to transfair 8 integers between 0 and 255 from processing to an array in arduino.
because arduino can not read arrays form the serial port, i thought that by adding 1000 to the first 2000 to the second and so on in processing and then check if the serial.read is between 1000 and 2000 for the first 2000 and 3000 for the second... i could fill my array in the correct order.
If you don't actually need all 256 values, you could use one of them (e.g. 0 or 255) to indicate the start of a transfer, then send all 8 values. Otherwise, you could send the values as ASCII (with serial.write(str(123)); ), with some kind of separator and delimitor, e.g. a comma between each of the numbers and a newline after. Although that requires a bit of work to reconstruct the numbers in Arduino.