My Pi is acting in a way i'm not expecting. When I set the value of a pin to 0 like
'echo "0" > /sys/class/gpio/gpio18/value'
or when using python
GPIO.output(18, GPIO.LOW)
it has the effect of turning on the LED I have wired up. Also when I set the value to 1 it turns the LED off.
Is my Pi broken or am I missing something?