controlling some GPIOs
Gilles Risch
gilles.risch at gmail.com
Sun Apr 12 17:02:19 UTC 2015
Thanks for the answer,
I'll implement a context manager class.
Regards,
Gilles
On 04/07/2015 09:20 AM, Gilles Risch wrote:
> Good morning,
>
> I'd like to use the python-daemon library on a raspberry pi to perform
> some IO tasks on the GPIOs.
>
> I must configure the pins and create some files during the start of
> the daemon. These files should be removed when I stop the daemon. Is
> there a simple way do do that when I implement my daemon? Can I do
> that in __init__ and __del__ or is that a bad practice?
>
> Regards,
> Gilles
More information about the python-daemon-devel
mailing list