buttons.py 文件源码

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

项目:playstreamation 作者: alewir 项目源码 文件源码
def main():
    button_enter = Button(PIN_ENTER)
    button_enter.when_pressed = btn_enter

    button_esc = Button(PIN_ESC)
    button_esc.when_pressed = btn_esc

    button_up = Button(PIN_UP)
    button_up.when_pressed = btn_up

    button_down = Button(PIN_DOWN)
    button_down.when_pressed = btn_down

    button_left = Button(PIN_LEFT)
    button_left.when_pressed = btn_left

    button_right = Button(PIN_RIGHT)
    button_right.when_pressed = btn_right

    pause()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号