06-10-2016, 04:16 AM
(06-10-2016, 04:06 AM)igna09 Wrote: Hi, i've installed this library but i'm not able to turn on a led. This is my code from python shell:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(20, GPIO.OUT) //i don't know if this is the right number for the pin 38
GPIO.output(20, True)
What i'm wrong?
The code seems correct. Some pin cannot be selected (for example 1, 2...). Try with pin 3 to be sure.