I have run into an issue where the first time my program turns on an output, the output works as expected.
When the program turns on the output a second time, the output flickers and turns off and on randomly the whole time it is supposed to be on. This behavior does not stop until I restart my program.
Again the first time the output goes HIGH, it looks fine. All times after this are bad.
Has anybody else experienced this? The program is making the same call to the revpi DIO each time. Why would it only happen after the first time?
Code that is called
Code: Select all
def bad_unlock_o1(self): """Called from Entrant Controller.""" # Switch on/off output O_1 self.rpi.io.O_1.value = True print('RevPi Output 1 ON') time.sleep(unlockTime) self.rpi.io.O_1.value = False print('RevPi Output 1 OFF')