Hi Everybody,
I am new to the Raspberry Pi, and when I wrote a Python script to blink an LED, here, is the code I used:
import RPi.GPIO as GPIO
import time
GPIO.setup(11, GPIO.OUT)
while True:
GPIO.output(11, True)
time.sleep(2)
GPIO.output(11, False)
time.sleep(2)
It gave me an error message that said, "RPi.GPIO.ModeNotSetException."
What is wrong here? I would be glad for any advice you could give me!
