Nachdem die erste frage gelöst wurde tritt gleich wieder eine neue auf die ich unter Google nicht auffinde.
Mein ziel ist es Über 2 LEDS einen Binär Code zu versenden (um bisschen rumzuprobieren:D).
Ich mache das ganze mit python und habe ein Script geschrieben.
Mein Problem ist wenn ich das Script starte bekomme ich diese Fehlermeldung:
File "led.py", line 16
time.sleep(dauer)
^
SyntaxError: invalid Syntax
Mein Script sieht so aus:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11,GPIO.OUT)
GPIO.output(11,GPIO.LOW)
GPIO.setup(13,GPIO.OUT)
GPIO.output(13,GPIO.LOW)
dauer = 1
for x in range(1):
GPIO.output(11,GPIO.LOW
time.sleep(dauer)
GPIO.output(13,GPIO.HIGH)
time.sleep(dauer)
GPIO.output(11,GPIO.LOW)
time.sleep(dauer)
GPIO.output(11,GPIO.LOW)
time.sleep(dauer)
GPIO.output(11,GPIO.LOW)
time.sleep(dauer)
GPIO.output(11,GPIO.LOW)
time.sleep(dauer)
GPIO.output(11,GPIO.LOW)
time.sleep(dauer)
GPIO.output(13,GPIO.HIGH)
time.sleep(dauer)
GPIO.cleanup()
Könnt ihr mir helfen? Danke im Vorraus.