update
This commit is contained in:
1 parent
a9a2f74c88
commit
e7ecdda711
1 file changed
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