diff --git a/py/speech_coltrol_led.py b/py/speech_coltrol_led.py index 1825277..3aac45e 100644 --- a/py/speech_coltrol_led.py +++ b/py/speech_coltrol_led.py @@ -9,10 +9,10 @@ GPIO.setmode(GPIO.BCM) GPIO.setup(LED_PIN, GPIO.OUT) def trigger_action(command): - if "on" in command.lower(): + if "light" in command.lower(): GPIO.output(LED_PIN, GPIO.HIGH) print("Light ON") - elif "off" in command.lower(): + elif "dark" in command.lower(): GPIO.output(LED_PIN, GPIO.LOW) print("Light OFF")