March 22, 2013 AT 1:00 pm

How to use interrupts with Python on the Raspberry Pi and RPi.GPIO

How to use interrupts with Python on the Raspberry Pi and RPi.GPIO

This is the first in a series of articles which aim to show you how to use this new interrupt facility in Python.

Interrupts are a much more efficient way of handling the “wait for something to happen and react immediately when it does” situation. They free up the resources you would have wasted on polling, so that you can use them for something else. Then, when the event happens, the rest of your program is “interrupted” and your chosen outcome occurs.

Source code and more here!

Related

No Comments

No comments yet.

Sorry, the comment form is closed at this time.