I've not used gpizero for a while but last time I did there was an issue with callbacks. You wouldn't see the next one until your function returns. Going back to your original code that looks like it take most of a second to handle each callback.
I've no idea if it buffers/queues callbacks during that time or whether they're lost. Or if that behaviour has now changed and you're seeing multiple simultaneous callbacks.
It's also possible you're seeing switch bounce issues.
I've no idea if it buffers/queues callbacks during that time or whether they're lost. Or if that behaviour has now changed and you're seeing multiple simultaneous callbacks.
It's also possible you're seeing switch bounce issues.
Statistics: Posted by thagrol — Fri Nov 28, 2025 12:18 am