Files
robotik-WS-2022/robot-a.py
T
2023-01-06 23:57:37 +01:00

23 lines
387 B
Python

#!/usr/bin/env python2
#-*- coding:utf-8 -*-
import sys
sys.path.append("inc")
from robot_inc import *
linkeFlasche=GPIO_17
rechteFlasche=GPIO_27
# 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)