Model B+, GPIO pin 27 not working - Raspberry Pi Forums
hello,
have pi model b+ raspbian installed. im trying turn on relay module using gpio 21 (pin 40). doesn't working.
if use gpio 14 (pin 8) working , turning on relay module ans o other pins need gpio 21 (pin 40) connect other circle , doesn't working.
body has advice?
i'm using following python code:

have pi model b+ raspbian installed. im trying turn on relay module using gpio 21 (pin 40). doesn't working.
if use gpio 14 (pin 8) working , turning on relay module ans o other pins need gpio 21 (pin 40) connect other circle , doesn't working.
body has advice?
i'm using following python code:
code: select all
import rpi.gpio gpio import time gpio.setmode(gpio.bcm) # init list pin numbers pinlist = [21] # loop through pins , set mode , state 'low' #gpio.high - module off #gpio.low - module on in pinlist: gpio.setup(i, gpio.out) gpio.output(i, gpio.high) sleeptimel=1; sleeptimeh=1; try: while (1): for in pinlist: gpio.output(i,gpio.high); time.sleep(sleeptimel); gpio.output(i,gpio.low); time.sleep(sleeptimeh); except keyboardinterrupt: print " quit"; gpio.cleanup(); gpio.cleanup();

does work when use different library?
raspberrypi
Comments
Post a Comment