pingo-io / pingo-py

Generic API for controlling boards with programmable IO pins
http://pingo.io
MIT License
257 stars 50 forks source link

time to sleep should be configurable #102

Open scls19fr opened 8 years ago

scls19fr commented 8 years ago

Hello,

PollingTask.__init__ should have a time_to_sleep parameter instead of having a hard code value of 0.05 in run. Maybe this time_to_sleep parameter should be set at Switch.start (with default value being 0.05)

Kind regards