added mode names

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-02 00:42:10 +02:00
parent bb2146c322
commit 35f33c633d
1 changed files with 3 additions and 2 deletions

View File

@ -178,11 +178,12 @@ if __name__ == '__main__':
b = str(splitted_payload[2])
elif topic == "server-rack-led/mode":
if payload == "0":
if payload == "Rainbow":
global mode
mode = 0
elif payload == "1":
elif payload == "Custom Color":
mode = 1
strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT, LED_BRIGHTNESS, LED_CHANNEL)
strip.begin()