Fhernd icon

comunicacion-puerto-serial.py

Fhernd | PRO | 07/20/18 10:44:35 AM UTC | 0 ⭐ | 2462 👁️ | Never ⏰ | []
Python |

260 B

|

None

|

0 👍

/

0 👎

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()

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎