I have an LED connected to a GPIO pin and am using RPi.GPIO to control it. When setting up the GPIO pin, the LED blinks on ever so slightly when being initialized, which I don't want.
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(22, GPIO.OUT) GPIO.output(22, False)
setMode seems to briefly turn on the LED. Is there a way to prevent this? Is there a
GPIO.setup(22, GPIO.OUT, default=False)?