presentation_driver_async.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:PresentationDriver 作者: pasalino 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号