alarm.py 文件源码

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

项目:PiAlarm 作者: KyleKing 项目源码 文件源码
def stop():
    global _running
    _running = False
    cg.send("\nAlarm Cycles Finished\n")
    cg.ifttt('PiAlarm_SendText', {'value1': 'PiAlarm Completed'})

    # Cleanup tasks:
    all_off.run()
    GPIO.remove_event_detect(off_button)
    #
    # GPIO.cleanup()  # Removed to avoid interference with clock
    #
    # release_PWM(pin_shaker)
    # etc...
    # # Then stop pi-blaster for good measure:
    # stopPiB = "sudo kill $(ps aux | grep [b]laster | awk '{print $2}')"
    # subprocess.call(stopPiB, shell=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号