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!
Try Adafruit's new iPhone & iPad app for makers! Circuit Playground! "Incredibly handy for anyone working in electronics. Perfect for engineers and non-engineers alike."
Looking for engineers, makers and the builders of dreams? Try our Adafruit job boards.
Join our weekly Adafruit SHOW-AND-TELL
at 9:30pm ET every Saturday night! Then at 10pm, ASK-AN-ENGINEER
and the Adafruit team!
No comments yet.
Sorry, the comment form is closed at this time.