Here is the code I am running on the Pi through IDLE.
import RPi.GPIO as GPIO import time GPIO.cleanup() GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.OUT) for i in range(50): GPIO.output(12, 0) time.sleep(1) GPIO.output(12, 1) time.sleep(1) GPIO.cleanup()
I am trying to get the LED to blink on and off. I have tried also using GPIO.BCM mode with 18 instead of 12 as the pin number.
I've attached pictures of my breadboard / general Pi set up. The longer end of the LED is attached to jumper cable, the shorter end is attached to the resistor. All parts are completely brand new.
The code runs, the LED does nothing.
I have since tried this exact set up with a 57 ohm resistors as opposed to the initial 10k ohm resistor. Still same results. LED does nothing.
edit Can get LED to turn on running through 5v and ground pins directly from the Pi with a 220 ohm resistor.