granted(1) programMode = False else: if stp.findCard(cardTag)[0]: print("I know this CARD, removing...") stp.rmCard(cardTag) #add retorno visual np[0] = RED np.write() time.sleep_ms(3000) #fim do retorno visual print("-----------------------------") print("Scan a CARD to ADD or REMOVE from memory") else: print("I do not know this CARD, adding...") stp.addCard(cardTag) #add retorno visual np[0] = GREEN np.write() time.sleep_ms(3000) #fim do retorno visual print("-----------------------------") print("Scan a CARD to ADD or REMOVE from memory") else: if stp.IsMaster(cardTag): programMode = True print("Hello Master - Entered Program Mode") amount = stp.amount() print("I have", amount, "card(s) on memory.\n") print("Scan a CARD to ADD or REMOVE from memory")