Using pi3B, buster with GPIO. I set up an event response:
GPIO.add_event_detect(13, GPIO.RISING, callback=mysensor)
It works...when GPIO goes high, mysensor is run. However using a scope, it appears that from the time gpio goes high, to the time mysensor executes is a very long time (500-600 microseconds). What priority does the event have (and can it be raised)?...Does the program drop everything it is doing to respond immediately? Or does something have to complete first before the response begins? If so, what needs completed first?