Python 之 Serial串口通訊

0 Serial方法 一、導入pyserial模塊 import serialpython 二、打開串行口 // 打開串口0, 9600,8N1,鏈接超時0.5秒 import serial ser=serial.Serial("/dev/ttyUSB0",9600,timeout=0.5) #使用USB鏈接串行口 ser=serial.Serial("/dev/ttyAMA0",9600,tim
相關文章
相關標籤/搜索