logo
  • 教程列表
  • SO官方文档
  • Python 串行通信(pyserial)
    • 初始化串行设备
    • 从串口读取
    • 检查计算机上可用的串行端口
  1. StackOverflow 文档
  2. Python Language 教程
  3. Python 串行通信(pyserial)
  4. 初始化串行设备

初始化串行设备

Created: November-22, 2018

import serial
#Serial takes these two parameters: serial device and baudrate
ser = serial.Serial('/dev/ttyUSB0', 9600)
  • 从串口读取
  • Python 串行通信(pyserial)

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明