parent
715f750202
commit
4023287ffb
4
main.py
4
main.py
|
@ -169,8 +169,6 @@ if __name__ == '__main__':
|
|||
strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT, LED_BRIGHTNESS, LED_CHANNEL)
|
||||
strip.begin()
|
||||
|
||||
mode = 0
|
||||
power = "True"
|
||||
global r
|
||||
r = 255
|
||||
global g
|
||||
|
@ -191,7 +189,7 @@ if __name__ == '__main__':
|
|||
client.on_message = mqtt_on_message
|
||||
|
||||
client.publish("server-rack-led/power/status", "True")
|
||||
client.publish("server-rack-led/mode/status", "Rainbow")
|
||||
client.publish("server-rack-led/mode/status", "Custom Color")
|
||||
|
||||
try:
|
||||
client.loop_start()
|
||||
|
|
Loading…
Reference in New Issue