update
This commit is contained in:
1 parent
e7ecdda711
commit
3ef209313b
1 file changed
+24
Executable
+24
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python2
|
||||||
|
#-*- coding:utf-8 -*-
|
||||||
|
|
||||||
|
import sys
|
||||||
|
sys.path.append("inc")
|
||||||
|
from robot_inc import *
|
||||||
|
#- ENDE DER SYSTEMEINSTELLUNGEN
|
||||||
|
|
||||||
|
|
||||||
|
linkeFlasche=GPIO_2
|
||||||
|
rechteFlasche=GPIO_3
|
||||||
|
|
||||||
|
# Rezept für Apfelsaft
|
||||||
|
gpio_on (linkeFlasche)
|
||||||
|
sleep (0.5)
|
||||||
|
gpio_off (linkeFlasche)
|
||||||
|
|
||||||
|
gpio_on (rechteFlasche)
|
||||||
|
sleep (1.5)
|
||||||
|
gpio_off (rechteFlasche)
|
||||||
|
|
||||||
|
# oder in einer Funktion
|
||||||
|
#gpio_on_for (linkeFlasche, 0.5)
|
||||||
|
#gpio_on_for (rechteFlasche, 1.5)
|
||||||
Reference in new issue
Block a user