CandleSimulation.py 文件源码

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

项目:52-Weeks-of-Pi 作者: grantwinney 项目源码 文件源码
def initialize_gpio():
    GPIO.setmode(GPIO.BOARD)
    GPIO.setup([R,G], GPIO.OUT, initial=GPIO.LOW)
    GPIO.setup(BUTTON, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
    GPIO.add_event_detect(BUTTON, GPIO.FALLING, fan_the_flame, 250)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号