I'm trying to make a led blink every second. This is my code:
import RPi.GPIO as gpio
try:
while True:
gpio.output(20, 1)
time.sleep(1)
gpio.output(20, 0)
except KeyboardInterrupt:
gpio.cleanup()
The problem is that my LED just turns on and it does not blink.