I'm using a Raspberry Pi 2.
Part of my project requires the Pi to activate relays, for which I intend to make a pin high for a while and then return to low.
However once I set a pin to high, it does not return to low
GPIO.setmode(BOARD) GPIO.setup(16,OUT,initial=GPIO.LOW) while 1: GPIO.OUTPUT(16,1) time.sleep(2); GPIO.OUTPUT(16,0) time.sleep(2); print("Test")
The loop executed regularly as I can see the test message printed.
The only way the pin resets is if I run
GPIO.cleanup() on start of the program execution.