def treadmill(): """ callable function to be able to start running on a treadmill """ global scanPass, backData scanPassScreen("top") thread = threading.Thread(target=reader, args=(True, )) thread.start() scanPass.mainloop() cardData = backData cardDataDb = ("rfidNumber = '" + str(cardData) + "'") backData = "" customerID = gD.getDataWhere("customerID", "loginInfo", cardDataDb) Treadmill.main(customerID[0][0])
def treadmill(): """ callable function to be able to start running on a treadmill """ global scanPass, backData scanPassScreen("top") thread = threading.Thread(target=reader, args=(True,)) thread.start() scanPass.mainloop() for i in range(3): GPIO.output(ledGreen, True) sleep(0.3) GPIO.output(ledGreen, False) sleep(0.3) cardData = backData cardDataDb = ("rfidNumber = '" + str(cardData) + "'") backData = "" customerID = gD.getDataWhere("customerID", "loginInfo", cardDataDb) Treadmill.main(customerID[0][0])
def treadmill(): """ callable function to be able to start running on a treadmill """ #basicWindow("treadmill") Treadmill.main()
def treadmill(): """ callable function to be able to start running on a treadmill """ #basicWindow("treadmill") Treadmill.main()