I would like to switch led over GPIO command. I follow this tutorial: https://projects.drogon.net/raspberry-pi/gpio-examples/tux-crossing/gpio-examples-1-a-single-led/ and I have few problems. Here is my "construction":
- First problem is when I switch blue cable from GPIO4 to 3V3 then led almost doesn't light.
- According to tutorial shorter leg of led is minus, but in my case led lights only when connect shorter leg to 3V3 or GPIO4 pin. Is it possible?
- Last problem is that If I connect led to GPIO4 or GPIO17 it lights, and when I connect it to GPIO27 or GPIO22 it doesn't. Calling
gpio write 0 0(to turn off GPIO17) or
gpio write 2 1(to turn on GPIO27) causing no effect.