hi brother. when i try this code
if (temp_angle != this_angle)
{
//write the servo angle to the serial port
// byte b1;
b1 = (byte) this_angle;
longAngle = this_angle;
port.write(longAngle);
temp_angle = this_angle;
//println(this_angle);
//println(String.format("%6d %4d", this_angle, b1));
}
the console write an error said
“The method write(byte[]) in the type Serial is not applicable for the arguments (long)”
and when i write these part
if (temp_angle != this_angle)
{
//write the servo angle to the serial port
// byte b1;
b1 = (byte) this_angle;
longAngle = this_angle;
port.write(this_angle);
temp_angle = this_angle;
println(this_angle);
//println(String.format("%6d %4d", this_angle, b1));
}
there is no error in processing console but nothing sent to ard