1
kisscucci OP 找到方法了:
import binascii def order_list(): a = 'aa0902630000bb' a_list = [] for i in a.split(): a_list.append(binascii.a2b_hex(i)) return a_list ser = serial.Serial('/dev/ttyUSB0', 9600) ser.writelines(order_list()) 作者:知乎用户 链接: https://www.zhihu.com/question/51733053/answer/147899163 |
2
jiangbingo 2017-08-24 09:14:34 +08:00
nice
|
3
jiangbingo 2017-08-24 09:14:59 +08:00
题主在用树莓派开发什么?
|
4
kisscucci OP @jiangbingo 获取二维码扫描器数据
|