def randomFlashAction(lightNumbers, t): bridge_request.setOn(False, lightNumbers) time.sleep(0.4 * randint(10) / 10) bridge_request.setOn(True, lightNumbers) time.sleep(0.2 * randint(10) / 10)
def flashAction(lightNumbers, t): bridge_request.setOn(False, lightNumbers) time.sleep(0.4) bridge_request.setOn(True, lightNumbers) time.sleep(0.2)