- 博客(1)
- 收藏
- 关注
原创 树莓派python写数据到Arduino控制舵机简单笔记
1.树莓派上Python:import tkinterimport serialser = serial.Serial('/dev/ttyACM0', 9600, timeout=1)def showNum(): print(scale1.get()) val = str(scale1.get()) ser.write(val.encode('utf-8')) # python3中write()串口写字符需加encode()转码,否则报错 win = tk
2020-07-29 23:31:30 1556
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人