2
Hello, Need to transform a value int to byte.
I tried to do it this way:
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, only accepted in byte. Thank you!
Thank you! man, I need, now on Rduino, do the opposite, receive this value in bytes and turn into int. How to do?
– Gledson Leal
See my issue.
– Leonel Sanches da Silva
value[0] - in Python 3 when you recover values of an byte object using dices, you see them as integers (no signal).
– jsbueno