Browse Source

trying to get it work

digital 8 years ago
parent
commit
103ba4d2f7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      pin/__init__.py

+ 4 - 4
pin/__init__.py

@@ -109,7 +109,7 @@ class GPIOWrapper(object):
     gpio = None
     OUT = "out"
     IN = "in"
-    BCM = "broadcom"
+    # BCM = "broadcom"
     pin_values = {}
 
     def __init__(self):
@@ -135,9 +135,9 @@ class GPIOWrapper(object):
             lgpio.debug("unknown error occured", exc_info=e)
         finally:
             self.gpio = False
-            self.OUT = getattr(self.gpio,self.OUT)
-            self.IN = getattr(self.gpio,self.IN)
-            self.BCM = getattr(self.gpio,self.BCM)
+            self.OUT = getattr(self.gpio,"OUT",self.OUT)
+            self.IN = getattr(self.gpio,"IN",self.IN)
+            # self.BCM = getattr(self.gpio,self.BCM)
 
     def output(pins,state,*args):
         lgpio.debug("setting pin(s) {:0>2} to value {}".format(