bluetooth_drone/relais.py
Daniel Pollithy 7d9b1527b5 change
2017-08-29 20:08:59 +02:00

12 lines
207 B
Python

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