update
This commit is contained in:
@@ -12,9 +12,9 @@ GPIO 20 -> SARA PWR ON
|
|||||||
|
|
||||||
option 1:
|
option 1:
|
||||||
CLI tool like pinctrl
|
CLI tool like pinctrl
|
||||||
pinctrl set 17 op
|
pinctrl set 16 op
|
||||||
pinctrl set 17 dh
|
pinctrl set 16 dh
|
||||||
pinctrl set 17 dl
|
pinctrl set 16 dl
|
||||||
|
|
||||||
option 2:
|
option 2:
|
||||||
python library RPI.GPIO
|
python library RPI.GPIO
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ def run_script(script_name, interval, delay=0):
|
|||||||
if not is_script_locked():
|
if not is_script_locked():
|
||||||
create_lock_file()
|
create_lock_file()
|
||||||
try:
|
try:
|
||||||
subprocess.run(["python3", script_path])
|
subprocess.run(["python3", script_path], timeout=200)
|
||||||
finally:
|
finally:
|
||||||
remove_lock_file()
|
remove_lock_file()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user