This commit is contained in:
br committed 2023-01-07 07:31:37 +01:00
1 parent 3ef209313b
commit 67e253ccb6
2 files changed
+28 -15

No files matched your search

+13 -12
View File
@@ -7,18 +7,19 @@ from robot_inc import *
#- ENDE DER SYSTEMEINSTELLUNGEN
linkeFlasche=GPIO_2
rechteFlasche=GPIO_3
fussMotor=GPIO_2
beinMotor=GPIO_3
# Rezept für Apfelsaft
gpio_on (linkeFlasche)
sleep (0.5)
gpio_off (linkeFlasche)
# fussMotor einstellen auf 0 Grad - Position
gpio_drive (fussMotor,0)
#sleep (0.5)
gpio_on (rechteFlasche)
sleep (1.5)
gpio_off (rechteFlasche)
# beinMotor einstellen auf 0 Grad - Position
gpio_drive (beinMotor,0)
#sleep (0.5)
# fussMotor einstellen auf zufallige (gueltige) - Position
winkel=zufall(27-113)
gpio_drive (fussMotor,0)
#sleep (0.5)
# oder in einer Funktion
#gpio_on_for (linkeFlasche, 0.5)
#gpio_on_for (rechteFlasche, 1.5)