def lightTagHandler(v, t, a): if v: flash.on() else: try: flash.off() except Exception as e: print(e) flash.release()
def release(self): flash.release()