romilly/quick2wire-python-api

Flush needed for writes

jemgoss opened this issue · 1 comments

In gpio.py, I had to add f.flush() after the write statements in order to get the pin state changed immediately. I believe this is because text streams are buffered by default. Alternative fix would be to use binary streams, but then some translation code would be necessary.

Thanks for the report. I've updated gpio.py with a flush - grab the latest and let us know if you see any more issues!