Turn on Pin 7 (Used with 3.3v Pin 6 Ground)
1 2 3 4 5 6 |
import RPi.GPIO as GPIO ## Import GPIO library GPIO.setmode(GPIO.BOARD) ## Use board pin numbering GPIO.setup(7, GPIO.OUT) ## Setup GPIO Pin 7 to OUT GPIO.output(7,False) ## Turn on GPIO pin 7 |