1. 首页
  2. 数据库
  3. 其它
  4. 在Python中COM口的调用方法

在Python中COM口的调用方法

上传者: 2021-01-03 23:56:07上传 PDF文件 27.53KB 热度 18次
如下所示: import serial import time t = serial.Serial('com6', 115200) #USB COM number on your PC and the transfer bit rate of the COM port. print t.portstr #Display the working UART port number on your PC. n = t.write('logcat -c \r') n = t.write('ampclient_samples 2 -O 3 /mnt/media_rw/B278-E25A/video_g
用户评论