热门

最新

红包

立Flag

投票

同城

我的

发布
sjwfdb_1__1
哒哒哒哒~
2 年前
truesjwfdb_1__1

C++如何实现,a线程实时获取b,c,d线程的cpu耗时时间?
来自社区: C/C++社区, 频道: C++,
https://bbs.csdn.net/topics/616716930

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
#!/usr/bin/python3import timeimport serialprint("UART Demonstration Program")print("NVIDIA Jetson Nano Developer Kit")serial_port = serial.Serial( port="/dev/ttyTHS1", #这里注意一下这个端口号 baudrate=115200, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE,)with open(r"t.txt",'r',encoding = 'utf8' ) as f: c = f.read() print(c) serial_port.write(c.encode('utf-8'))# c = '1lrlfrblflrrbrrllblbffllblfrrlffrllblbffllblff2'# serial_port.write(c.encode('utf-8'))
立即登录