def fadeLeds(self):
    if (self.ledState == None):
        return
    p = ((3.5 - (time.time() - self.ledTime)) / 0.5)
    if (p >= 1):
        return
    if (p <= 0):
        self.ledState = None
        self.sendLed(['000000' for i in range(self.nLeds)])
        return
    dimmedLeds = [(((int(((i & 16711680) * p)) & 16711680) | (int(((i & 65280) * p)) & 65280)) | (int(((i & 255) * p)) & 255)) for i in self.ledState]
    ledStr = ['{:06x}'.format(i) for i in dimmedLeds]
    self.sendLed(ledStr)
def fadeLeds(self):
    if (self.ledState == None):
        return
    p = ((3.5 - (time.time() - self.ledTime)) / 0.5)
    if (p >= 1):
        return
    if (p <= 0):
        self.ledState = None
        self.sendLed(['000000' for i in range(self.nLeds)])
        return
    dimmedLeds = [(((int(((i & 16711680) * p)) & 16711680) | (int(((i & 65280) * p)) & 65280)) | (int(((i & 255) * p)) & 255)) for i in self.ledState]
    ledStr = ['{:06x}'.format(i) for i in dimmedLeds]
    self.sendLed(ledStr)