diff --git a/main.py b/main.py index 627cb3f..470607f 100644 --- a/main.py +++ b/main.py @@ -149,6 +149,12 @@ if __name__ == '__main__': return 'No power argument specified' elif power == "": return 'No power argument specified' + elif power == "True": + power = True + return 'Power: ON' + elif power == "False": + power = False + return 'Power: OFF' strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT, LED_BRIGHTNESS, LED_CHANNEL) strip.begin()