Hello forum,
Just trying to make my 1st project with the LED and I copy this code
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(18,GPIO.OUT)
print "LED on"
GPIO.output(18,GPIO.HIGH)
time.sleep(1)
print "LED off"
GPIO.output(18,GPIO.LOW)
and I though that increasing the time.sleep(1) would make the LED stay lid longer but what it does is to make it blink whatever value is in time.speed(1). If I want to keep the LED on for whatever amount of seconds, how can I change the code?
Thanks