I need to catch a fast GPIO pulse in a while loop like so
while True: if GPIO.input(11) == 1: sys.exit(0)
the pulse is so fast (magnet passing by a switch), that if I add a sleep in the while, of just even
.5, it will miss the value in some cases.. without one, even with an internal pulldown, it will get a random false 1 pretty much instantly.. Is there some way to remove the sleep, and have it reliable? Is this something ony an external pulldown would solve?