Dear All,
Thanks for the help and instruction submitting the tags. I am gradually seeing the light excuse the pun.
The code worked and i have enjoyed my first success.
Dear All, I think this is correctly uploaded with tags and corrected syntax. The error is the same. "invalid syntax" [import RPI.GPIO as GPIO import time LedPin = 11 GPIO.setmode(GPIO.BOARD) GPIO.setup(LedPin,GPIO.OUT) GPIO.output(LedPin,GPIO.High) try: while True: print ("..led on ") GPIO.output(Le...
Dear all, I have i think updated my code as suggested. The error statement when i try to run the code is, "invalid syntax" . A little arrow points the "except" statement. I have tidied the code up as follows. I hope this is correct, import RPI.GPIO as GPIO import time ledpin = 11 GPIO.setmode(GPIO.B...
Thanks all for your help. I will take a look at your replies. Might take me a while to break through the crusty brain cell and get a back to you work in progress for this evening. In the meantime I have cut and pasted the code from the Python 3 window. I hope this helps cast a better light on the su...
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 lea...