def start_listen():
try:
data = serialPort.readline()[:-1] # the last bit gets rid of the new-line chars
if data:
ss = data.decode("utf-8")
if ss == "forward":
press('right', 'Next Slide')
elif ss == "back":
press('left', 'Prev Slide')
yield from start_listen()
except:
exit(-1)
presentation_driver_async.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录