2013年3月24日日曜日

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 » RasPi.TV

Raspberry Pi の Python モジュールである RPi.GPIO が、バージョンアップにより GPIO からの割り込み(interrupt)に対応した。

GPIO を通じてセンサなどから信号を待つようなケースでは、ポーリングし続けるという無駄な処理を行う必要がなくなる。CPU に優しくなり、外部機器との連携がさらに効率的になる。

0 件のコメント:

コメントを投稿