earthquakepi.py 文件源码

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

项目:earthquakepi 作者: rgrokett 项目源码 文件源码
def exit():
    """
    Exit handler, which clears all custom chars and shuts down the display.
    """
    try:
    if not DISPLAY:
            lcd = RPi_I2C_driver.lcd()
            lcd.backlight(0)
        if DEBUG:
            print "exit()"
        GPIO.cleanup()
    except:
        # avoids ugly KeyboardInterrupt trace on console...
        pass


#####


#####
# MAIN HERE
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号