Browse Source

added gpio wrapper

digital 8 years ago
parent
commit
8ca7af209b
1 changed files with 5 additions and 2 deletions
  1. 5 2
      pin/__init__.py

+ 5 - 2
pin/__init__.py

@@ -28,10 +28,13 @@ import digilib.network
 log = logging.getLogger(__name__+"")
 lgpio = logging.getLogger(__name__+".gpio")
 
-_pins_for_cleanup = set()
-
 # Error messages
 ERROR_TAKES_ARGUMENTS = "{} takes {} {} argument(s): {}"
+
+_pins_for_cleanup = set()
+
+gpio = GPIOWrapper()
+
 # respond(ERROR_TAKES_ARGUMENTS.format(
 #         command, "one", "positional", "<name>"))