mikelefree:
arduino.serialWrite((char)Math.round(speed));
E' giusto.
speed è un float, Math.round di un float ritorna un int che viene castato a char
mikelefree:
arduino.serialWrite((char)Math.round(speed));
E' giusto.
speed è un float, Math.round di un float ritorna un int che viene castato a char