simplify command
This commit is contained in:
parent
dae4a527be
commit
791f9a7305
@ -9,7 +9,7 @@ GPIO.setmode(GPIO.BCM)
|
|||||||
GPIO.setup(LED_PIN, GPIO.OUT)
|
GPIO.setup(LED_PIN, GPIO.OUT)
|
||||||
|
|
||||||
def trigger_action(command):
|
def trigger_action(command):
|
||||||
if "let" in command.lower():
|
if "fire" in command.lower():
|
||||||
GPIO.output(LED_PIN, GPIO.HIGH)
|
GPIO.output(LED_PIN, GPIO.HIGH)
|
||||||
print("Light ON")
|
print("Light ON")
|
||||||
elif "dark" in command.lower():
|
elif "dark" in command.lower():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user