beerapi-gpio.py 文件源码

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

项目:kegbot-pi-flowmeter 作者: stevenpinewebair 项目源码 文件源码
def main():
    #initial build out
    GPIO.add_event_detect(17, GPIO.FALLING, callback=sensorCallback1)
    stillAlive()
    try:
        while True:
            time.sleep(1)
            #logging.info('in sleep loop')
            #push this off to definition
            if(fm.clicks > 0):
                pourDrinkEvent(fm.clicks)
    except KeyboardInterrupt:
        GPIO.cleanup()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号