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()
beerapi-gpio.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录