Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import serial
- conn = serial.Serial('/dev/tty.usbmodem641',
- baudrate=9600,
- bytsize=8,
- parity='N',
- stopbits=1)
- conn.write(b'G1 X50 Y50\r\n')
- respuesta = conn.readline()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement