mirror of
https://github.com/DanielPollithy/bluetooth_drone.git
synced 2025-10-16 11:45:38 +00:00
12 lines
277 B
Python
12 lines
277 B
Python
from subprocess import Popen
|
|
|
|
|
|
def switch_off():
|
|
popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'off'])
|
|
popen.wait()
|
|
|
|
|
|
def switch_on():
|
|
popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'on'])
|
|
popen.wait()
|