I'm new to this whole RP world, and I'm trying to learn it.
I've been trying to follow this post, and connected my Pi this image below
Connection between Pi and Adafruit T-Cobbler Plus
Without having to run any code, my LED kept lighting up.
I created a file trying to turn it off.
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(17,GPIO.OUT) print "LED off" GPIO.output(17,GPIO.LOW)
I ran it
sudo python ledOff.py
I got the message to print "LED off" on my CLI , but that about it. LED is still on.
I'm not sure why my GPIO is stuck in a high mode.
I've tried rebooting my pi
sudo shutdown -r now still seeing the same result. :(
GPIO Version : 0.6.0a3
PI OS : Linux raspberrypi 4.1.7v7-aufs
Did I do anything that I'm not suppose to do here ?
I've tried update my GPIO to 0.6.1
$ sudo apt-get update $ sudo apt-get install python-rpi.gpio python3-rpi.gpio
Try running again, I got the message to print again, but the light is still ON
pi@raspberrypi$ sudo python ledOff.py LED off
I'm running out of ideas now, any suggestions will be much appreciated !