Hello I wanted to blink a LEDS. I have Raspberry Pi 3 B+ and I have LED connected to PIN 4 5v Power. The LED lights but I can't OFF LED
ledPin(4) GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(ledPin,GPIO.OUT) GPIO.output(ledPin,GPIO.LOW) time.sleep(1) while True:[![enter image description here]] GPIO.output(ledPin,GPIO.HIGH) time.sleep(1) GPIO.output(ledPin,GPIO.LOW) time.sleep(1)
Anyone know what is wrong?
red resistor blue GND green LED