bluetooth_drone/relais.py
Daniel Pollithy ef902017d7 d3 update
2017-09-01 12:39:07 +02:00

12 lines
261 B
Python

from subprocess import Popen
def switch_off():
popen = Popen(['sudo', '/home/linaro/bluetooth_drone/touch_switch', 'off'])
popen.wait()
def switch_on():
popen = Popen(['sudo', '/home/linaro/bluetooth_drone/touch_switch', 'on'])
popen.wait()