示例#1
0
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)
示例#2
0
def flashAction(lightNumbers, t):
    bridge_request.setOn(False, lightNumbers)
    time.sleep(0.4)
    bridge_request.setOn(True, lightNumbers)
    time.sleep(0.2)