I am not sure what I am doing wrong here.
I found this guide on but it's not working for me. The program does not output any errors but the LED doesn't light up.
I have and LED with + on
GPIO 12 and - on
GPIO 6 with a 100 Ohm resistor. This is shown in the images below:
Here is the code I am using
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(12,GPIO.OUT) GPIO.output(12,GPIO.HIGH) time.sleep(3) GPIO.output(12, GPIO.LOW) GPIO.cleanup()