klasse motor test
This commit is contained in:
@@ -38,7 +38,7 @@ def action(changePin, action):
|
|||||||
# Convert the pin from the URL into an integer:
|
# Convert the pin from the URL into an integer:
|
||||||
changePin = int(changePin)
|
changePin = int(changePin)
|
||||||
# Get the device name for the pin being changed:
|
# Get the device name for the pin being changed:
|
||||||
deviceName = pins[changePin]['name']
|
deviceName = pins_out[changePin]['name']
|
||||||
# If the action part of the URL is "on," execute the code indented below:
|
# If the action part of the URL is "on," execute the code indented below:
|
||||||
if action == "on":
|
if action == "on":
|
||||||
# Set the pin high:
|
# Set the pin high:
|
||||||
|
Reference in New Issue
Block a user