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_google_clips/New_Webm/bunny_1080P.webm \r') time.sleep(
Python中COM口的调用
最新推荐文章于 2024-02-26 09:09:26 发布