I just recently purchased Raspberry Pi 2 model from Canakit. It had pre-installed Raspbian OS. When I started my GPIO programming I noticed all GPIO pins are set High or Low from the start. There value cannot be changed via a program in Pyhton. I have used RPi.GPIO library to modify the signals on pins but no effect.
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(7, GPIO.OUT) GPIO.output(7, GPIO.LOW) GPIO.cleanup()
After running this pin number 7 is High as LED is lit.