def lightTagHandler(v, t, a):
     if v:
         flash.on()
     else:
         try:
             flash.off()
         except Exception as e:
             print(e)
         flash.release()
示例#2
0
文件: main.py 项目: susmit/plyer
 def release(self):
     flash.release()