]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
remove extraneous debugs
authorladyada <limor@ladyada.net>
Wed, 27 Jun 2018 21:32:56 +0000 (17:32 -0400)
committerScott Shawcroft <scott@tannewt.org>
Thu, 28 Jun 2018 17:49:18 +0000 (10:49 -0700)
src/adafruit_blinka/microcontroller/raspi_23/pin.py
src/microcontroller/pin.py

index 1537f1b3c1af11fd3f1865aec7e0e9c67429e2fa..4cca6ee0536ce621ca921650230a83208ad6a6cb 100644 (file)
@@ -26,7 +26,6 @@ class Pin:
 
     def init(self, mode=IN, pull=None):
         if mode != None:
-            print("set %d to mode %d" % (self.id, mode))
             if mode == self.IN:
                 self._mode = self.IN
                 GPIO.setup(self.id, GPIO.IN)
@@ -36,7 +35,6 @@ class Pin:
             else:
                 raise RuntimeError("Invalid mode for pin: %s" % self.id)
         if pull != None:
-            print("set %d to pull %d" % (self.id, pull))
             if self._mode != self.IN:
                 raise RuntimeError("Cannot set pull resistor on output")
             if pull == self.PULL_UP:
@@ -48,7 +46,6 @@ class Pin:
 
     def value(self, val=None):
         if val != None:
-            print("set %d to value %d" %(self.id, val))
             if val == self.LOW:
                 self._value = val
                 GPIO.output(self.id, val)
index b73545bdc1ca138daeb1638faa8a8eff5448d314..5c58dfc74584ad24e203e237e6ad79cbfe9a13f2 100755 (executable)
@@ -11,7 +11,6 @@ elif agnostic.microcontroller == "stm32":
     from adafruit_blinka.microcontroller.stm32.pin import *
 elif agnostic.microcontroller == "linux":
     if agnostic.board == "raspi_3" or agnostic.board == "raspi_2":
-        print("import raspi23")
         from adafruit_blinka.microcontroller.raspi_23.pin import *
     else:
         raise NotImplementedError("Board not supported: ", agnostic.board)