2017-04-07 71 views

回答

0

在你的Python脚本,你忘了定义的串行对象“端口”

# The port to which your Arduino board is connected 
port = 'arduino_port' 

时尝试此相反,

# The port to which your Arduino board is connected 
port = serial.Serial('/dev/ttyACM0',9600) 
#or whatever your port is called 
相关问题