forked from platypush/platypush
Added cleanup action on GPIO plugin
This commit is contained in:
parent
bdfe48fe32
commit
d33494419a
1 changed files with 5 additions and 0 deletions
|
@ -152,5 +152,10 @@ class GpioPlugin(Plugin):
|
||||||
|
|
||||||
return values
|
return values
|
||||||
|
|
||||||
|
@action
|
||||||
|
def cleanup(self):
|
||||||
|
import RPi.GPIO as gpio
|
||||||
|
gpio.cleanup()
|
||||||
|
|
||||||
|
|
||||||
# vim:sw=4:ts=4:et:
|
# vim:sw=4:ts=4:et:
|
||||||
|
|
Loading…
Reference in a new issue