Hi everybody,
I'm rather new to my Raspberry Pi and I've been trying to set up the GPIO pins to light up a simple LED. Using a Pi Cobbler Breakout Kit, I've attached it to a breadboard and wired up one LED with a 220 ohm resistor. However, every attempt to light the LED has been a failure. For some reason it won't light up no matter what I try to do. I've wired it up to pin #17 and then connecting it to ground as well. I also know to run the code through root. I've been using this code:
{
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
while True;
GPIO.output(17, True)
sleep(2)
GPIO.output(17, False)
sleep(2)
}
I would greatly appreciate if you had any tips to solve this. I just can't seem to get any output whatsoever from the GPIO pins on this raspberry pi.
Thanks,
Kian