I am using an Arduino to move a stepper motor a number of steps based on data from processing however i am having some problems. I am struggling to send 2 bytes at a time, the code works with one byte but not two. I wrote an Arduino program that read a buffer of 2 bytes this worked but the number of steps the motor moved was not consistent with the value processing was sending it. I think this is due to arduino using either char or byte buffers and not int, how do i do this while keeping everything in int. if anyone could help me send two bytes from processing to arduino.