Hello, I need to convert an int value to byte.
I tried to do this:
import serial
ser = serial.Serial('/dev/ttyACM0', 9600)
angulo = 90
ser.write(angulo)
#while 1 :
print ser.readline()
I need to send a value to the Arduino, at first, it only accepts byte. Thanks!