leosac / access-control

Leosac Access Control - Open Source Physical Access Control System
https://leosac.com
GNU Affero General Public License v3.0
240 stars 40 forks source link

Piface Digital GPIO write delayed #31

Closed xaqq closed 9 years ago

xaqq commented 9 years ago

When using raspberry_pifacedigital as platform's name, this triggers the use of another GPIOProvider implementation.

This implementation must use 1 thread to perform read() / write() and wait() on GPIO pins (because it uses SPI bus).

Currently, writing to a GPIO is delayed. all write are queued, and performed when the wait_for_input function return (that wait for interrupt on Piface). So the delay is something between 0 and timeout (currently 200)ms.

xaqq commented 9 years ago

This is not a problem anymore because of architectural change.