Raspberry Pi wiring simple LED


'm completely new to hardware in general. I just got a raspberry pi and was messing around trying to get an LED to light up.

I have everything wired like the picture below. I am using a 330ohm resister, which I believe is bigger therefore ok then what is required.

also (sorry this is my first time using any program to draw a circuit)

The program runs successfully, but no light comes on. I know the LED is good as I’ve tested it on the arduino. Anybody care to explain my wiring fault?
root@raspberrypi:/home/pi# cat test.py
import RPi.GPIO as GPIO

GPIO.setup(11, GPIO.OUT)

GPIO.output(11, True)
Changing to GPIO pin 0 results
Traceback (most recent call last): File "test.py", line 5, in <module> GPIO.setup(0, GPIO.OUT) RPi.GPIO.InvalidChannelException: The channel sent is invalid on a Raspberry Pi root@raspberrypi:/home/pi#


You cant use a bigger than need resistor I dont think. It would not leave enough electricity for your led depending on how far off it is. Make sure it is on the negative side of the led in case you didnt. its the leg on the led with the flat part above it.