update
This commit is contained in:
1 parent
f72538fc63
commit
a9a2f74c88
2 files changed
+6
-2
No files matched your search
@@ -14,6 +14,8 @@ GPIO_23=22
|
|||||||
GPIO_2=3
|
GPIO_2=3
|
||||||
GPIO_3=5
|
GPIO_3=5
|
||||||
|
|
||||||
|
GPIO.setmode(GPIO.BOARD)
|
||||||
|
|
||||||
def gpio_on (theGPIO):
|
def gpio_on (theGPIO):
|
||||||
# param1=INT # gpio#Nr
|
# param1=INT # gpio#Nr
|
||||||
GPIO.setup(theGPIO, GPIO.OUT)
|
GPIO.setup(theGPIO, GPIO.OUT)
|
||||||
|
|||||||
Regular → Executable
+4
-2
@@ -4,9 +4,11 @@
|
|||||||
import sys
|
import sys
|
||||||
sys.path.append("inc")
|
sys.path.append("inc")
|
||||||
from robot_inc import *
|
from robot_inc import *
|
||||||
|
#- ENDE DER SYSTEMEINSTELLUNGEN
|
||||||
|
|
||||||
linkeFlasche=GPIO_17
|
|
||||||
rechteFlasche=GPIO_27
|
linkeFlasche=GPIO_2
|
||||||
|
rechteFlasche=GPIO_3
|
||||||
|
|
||||||
# Rezept für Apfelsaft
|
# Rezept für Apfelsaft
|
||||||
gpio_on (linkeFlasche)
|
gpio_on (linkeFlasche)
|
||||||
|
|||||||
Reference in new issue
Block a user