This commit is contained in:
br committed 2023-01-07 00:04:43 +01:00
1 parent a9a2f74c88
commit e7ecdda711
1 file changed
+24
View File
@@ -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)