From 3ef209313be6801a783fc87bb38b52783e052a8c Mon Sep 17 00:00:00 2001 From: Kinder College Teilnehmer Date: Sat, 7 Jan 2023 00:05:30 +0100 Subject: [PATCH] update --- robot-keeper.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 robot-keeper.py diff --git a/robot-keeper.py b/robot-keeper.py new file mode 100755 index 0000000..c63ac4a --- /dev/null +++ b/robot-keeper.py @@ -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)