Files
robotik-WS-2022/robot-a.py
T
2023-01-07 00:04:14 +01:00

25 lines
418 B
Python
Executable File

#!/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)