i thought able find online googling hasn't turned up. have raspberry pi setup , i'm trying turn on/off led gpio pin.
have adafruit ribbon cable going pi breadboard, , i'm using pinmode bcm. think aligned. i'm able assign pin output using gpio.setup, when use gpio.output , @ 'gpio readall' output seems signal pin isn't changing. led continues stay lit when set output 0.
appreciated! code, trying turn led off, defaulted on, , hooked pin 13 , gnd.
have adafruit ribbon cable going pi breadboard, , i'm using pinmode bcm. think aligned. i'm able assign pin output using gpio.setup, when use gpio.output , @ 'gpio readall' output seems signal pin isn't changing. led continues stay lit when set output 0.
appreciated! code, trying turn led off, defaulted on, , hooked pin 13 , gnd.
code: select all
import rpi.gpio gpio gpio.setmode(gpio.bcm) gpio.setup(13,gpio.out) gpio.output(13,0)
are 100% sure use correct pin?
gpio13 physical pin 33, http://pinout.xyz/pinout/pin33_gpio13
gpio13 physical pin 33, http://pinout.xyz/pinout/pin33_gpio13
raspberrypi
Comments
Post a Comment