I have been trying to right my first physical script, to simply light an LED. I HAVE BEEN DOING HOBBY ELECTRONICS FOR A WHILE, and lighting an LED is simple.
Wanted to use Pi to light LED, but I can't get voltage across led. I have literally copied code off web, word for word, and still can't get output.
Is their something wrong with the board? Or is this a lot more complicated than I thought it was?
#RPi.GPIO is the library for Rassberry-pi GPIO functions(python) I need to import to utilize functions.
import RPi.GPIO as GPIO
import time
#Setup GPIO using Board numbering
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
#Project pin configuration
GPIO.setup(12, GPIO.OUT)
#Configure digital output
GPIO.output(12, GPIO.HIGH)
All I'm trying to do is get the LED tto light up. I'm not getting voltage across LED or resistors.
1.] Updated and reinstalled RPi.GPIO, no of the pins work.
2.] This is the second development board I have bought in an attempt to learn how to program, and it feels like another ripoff already. I had the Intel Galileo before this, and couldn't get far because it couldn't run the simple programs they lied were so easy. This feels like the same thing all over again, like I need a Phd. to get a light to turn on.