[/code]"> [/code]"> [/code]">
[code]import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(37, GPIO.OUT)
import time
for x in range (0,3):
GPIO.output(37, True)
print "Lights on"
time.sleep(3)
GPIO.output(37, False) <<<here where it is supposed to turn off but doesn't
print "Lights off"
GPIO.cleanup() <<< Relay's green light turn off here[/code]
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w