Dear All
I have just bought a PY B+ and along with some electronic kit and the following was part of the first attempt at programming using python3.
Can anyone help with the syntax error i get with Keyboardinterrupt. It is typed the same as the guide book.
Thanks in advance for helping an olddog learning new tricks.
try:
while true
print("..led on")
GPIO.output(LedPin, GPIO.LOW)
time.sleep(0.5)
print("Led off")
GPIO.output(LedPin, GPIO.High)
time.sleep(0.5)
Except KeyboardInterrupt:
GPIO.output (LEDPin, GPIO.High)
GPIO.cleanup ()